Where to set fetchOptions: "no-cors" #1780
-
I am getting CORS errors, and I am having a hard time figuring out where to set the fetchOption |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
nm. Of course Angular is running in browser, so there is no way to circumvent CORS restrictions. You have to solve this either from the host by setting |
Beta Was this translation helpful? Give feedback.
nm. Of course Angular is running in browser, so there is no way to circumvent CORS restrictions. You have to solve this either from the host by setting
Access-Control-Allow-Origin: *
header, or proxy the API calls through your local server. The latter one you can do by setting up a backend proxy withproxy.conf.json
when running your app withng serve
.