Read many ways for including of \'Access-Control-Allow-Origin\' and none worked for me.
I use @angular/common/http module and external url as data source. by the att
You mentioned webpack-dev-server, which of course can handle CORS since it's using express behind the scenes. In your webpack config
devServer: {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization"
}
},