proxy.conf.json
in the root directory of your project.proxy.conf.json
: { "/BACKEND_SERVER_URL/*": { "target": "http://localhost:8080/BACKEND_SERVER_URL/", "secure": false, "logLevel": "debug", "changeOrigin": false, "pathRewrite": { "^/BACKEND_SERVER_URL": "" } , "headers": {"ipaddress":"127.0.0.1"} } }
http://localhost:8080/BACKEND_SERVER_URL/
ng s --base-href /YOUR_BASE_URL/ --deploy-url /BACKEND_SERVER_URL/ --proxy-config proxy.conf.json