Geeks With Blogs
FOXJAZZ developing with .net December 2019 Entries
angular proxy cli to help with CORS
first step: npm install --save-dev https-proxy-agentadd proxy.conf.json to top level next to package.jsonFile 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

Copyright © foxjazz | Powered by: GeeksWithBlogs.net