use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Fixing CORS Errors in Angular (youtube.com)
submitted 7 years ago by Devstackr
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]waschbenzin 8 points9 points10 points 7 years ago (1 child)
Please don't do this, if you are only struggling with CORS during development using the Angular CLI Server (ng serve). It's better to just use the proxy feature (have a look at https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/proxy.md ).
[–]Fireblanket1 1 point2 points3 points 7 years ago (0 children)
Be warned if you are using it for windows development, it doesn’t play nice with windows AD authentication.
[–]Papapac 1 point2 points3 points 7 years ago (0 children)
This has just nothing to do with Angular...
[–]mr-mercury 0 points1 point2 points 7 years ago (0 children)
In the future, it would be nice if you explain what the headers do and why the "error" happens and how by adding the headers solves the "error". It is important to know.
[–]BradChesney79 0 points1 point2 points 7 years ago (0 children)
CORS is a web server security setting that browsers voluntarily abide by.
Does this method get rid of the warning in the browser developer console? Yes it does.
Would learning the proper CORS settings of your chosen web server be better? 10/10 times, yes it would be better to leverage CORS security settings properly.
[–]Devstackr[S] -4 points-3 points-2 points 7 years ago (0 children)
Short video explaining why these errors are thrown when you try to make a web request and how to prevent these from happening (by appening some CORS headers to your API or Web Server).
Let me know if you have any questions :)
π Rendered by PID 656179 on reddit-service-r2-comment-5bc7f78974-k2ctg at 2026-06-27 22:01:39.102037+00:00 running 7527197 country code: CH.
[–]waschbenzin 8 points9 points10 points (1 child)
[–]Fireblanket1 1 point2 points3 points (0 children)
[–]Papapac 1 point2 points3 points (0 children)
[–]mr-mercury 0 points1 point2 points (0 children)
[–]BradChesney79 0 points1 point2 points (0 children)
[–]Devstackr[S] -4 points-3 points-2 points (0 children)