--

Doesn't work for me. I still get:

Access to XMLHttpRequest at 'http://localhost:40345/test' from origin 'https://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

I had to use this to get it to work (taken from https://alfilatov.com/posts/run-chrome-without-cors):

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

David Klempfner
David Klempfner

Written by David Klempfner

I’m a software developer who is passionate about learning how things work behind the scenes.

No responses yet

Write a response