Configure Angular-cli proxy for custom headers in request to backend?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: the topic, as I understand it is quite fresh and relevant. Tell me where is my mistake? So, I did everything as in the documentation: https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/proxy.md Angular-cli version: .... "devDependencies": { "@angular/cli": "1.2.0", .... Created the file: proxy.conf.json { "/profile/*": { "target": "http://localhost:8888", "secure": false, "pathRewrite": { "^/profile": "" }, "changeOrigin": true, "logLevel": "debug" } } I registered it in package.json .... "scripts": { "ng": "ng",