Overrule CORS header Access-Control-Allow-Origin

Enough has been written about the  Access-Control-Allow-Origin error message when one runs JavaScript code from a local browser or a different domain or port.

For testing purposes, you can run Chrome in “unsafe” mode, which will simply ignore CORS rules.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=c:\temp-working-folder

Pretty simple and useful.

Published by

Nelson Muskus

Full Stack developer

Leave a Reply

Your email address will not be published.