angular中http中请求数据跨域的问题

我是使用代理做的请求数据 1 首先需要建立一个JSON文件,文件名为proxy.config.json: 2配置内容:如下 proxy.config.json: { "/api": { "target": "http://localhost:3001", "secure": false, "pathRewrite": { "^/api":
相关文章
相关标签/搜索