Skip to content

Where to set fetchOptions: "no-cors" #1780

Discussion options

You must be logged in to vote

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 with proxy.conf.json when running your app with ng serve.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Lexmark-haputman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant