Geeks With Blogs

Post Categories

FOXJAZZ developing with .net
first step: npm install --save-dev https-proxy-agent

add proxy.conf.json to top level next to package.json
File should look like this: 
{ "/": { "target": "http://target/service/api", "secure": false, "logLevel": "debug", "changeOrigin": true } }

on environment.json use this:
"API": "http://localhost:4200",

 ng serve --proxy-config proxy.conf.json



Posted on Thursday, December 12, 2019 5:15 AM | Back to top


Comments on this post: angular proxy cli to help with CORS

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © foxjazz | Powered by: GeeksWithBlogs.net