How set proxy headers in proxy.config.json file for angularcli project
问题 I'm trying to set proxy headers for angularcli . Here's what I have so far in my proxy.config.json file: "/api": { "target": "https://applications.str.coni.com/api", "secure": false, "logLevel": "debug" But I haven't had any luck so far, perhaps I'm missing something (probably in another file). Any suggestions would be much appreciated. 回答1: Angular-cli uses http-proxy-middleware https://github.com/chimurai/http-proxy-middleware there is an option called headers that you can use: https:/