search

Home  >  Q&A  >  body text

angular.js - angular 配置代理proxy.conf.json后报错,页面返回500internal server error?

使用--proxy-config配置代理服务后,页面返回一个500服器错误,怎么解决?

漂亮男人漂亮男人2743 days ago1019

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-15 17:16:14

    I have solved this problem!
    After three days of research, there was no progress. Later, google搜了一下github上http-proxy-midlleware主页issue里面有个大神说过了window系统必须这样在proxy.conf.json写"target":"127.0.0.1:8888", using the local computer IP.
    If you use localhost, an error will be reported.

    reply
    0
  • Cancelreply