I want to use an API running at localhost:8000/data into my angular app which is running at localhost:4200.
I am getting the below error in the browser.
I want to use an API running at localhost:8000/data into my angular app which is running at localhost:4200.
I am getting the below error in the browser.
Its a backend "problem". The backend can use in local env:
Access-Control-Allow-Origin: *
Or you start the chrome without CORS, e.g. on mac
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security