文章詳情頁
angular.js - angular 配置代理proxy.conf.json后報錯,頁面返回500internal server error?
瀏覽:117日期:2024-09-14 15:56:05
問題描述
使用--proxy-config配置代理服務后,頁面返回一個500服器錯誤,怎么解決?
問題解答
回答1:這個問題我已經解決了!研究了三天沒啥進展,后來在google搜了一下github上http-proxy-midlleware主頁issue里面有個大神說過了window系統必須這樣在proxy.conf.json寫'target':'127.0.0.1:8888',使用本地電腦ip.如果用localhost就會報錯。
排行榜
