angular中http中請求數據跨域的問題

我是使用代理做的請求數據 1 首先需要建立一個JSON文件,文件名爲proxy.config.json: 2配置內容:如下 proxy.config.json: { "/api": { "target": "http://localhost:3001", "secure": false, "pathRewrite": { "^/api":
相關文章
相關標籤/搜索