enable cors allow origin all in angular 8 with hhtpclient code example
Example: adding cors in angular
"architect": {
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "project-name:build",
"proxyConfig": "src/proxy.conf.json"
},
}
}