Is there any way to disable the Same-origin policy on Google's Chrome browser?
This is strictly for development, not production use.
Is there any way to disable the Same-origin policy on Google's Chrome browser?
This is strictly for development, not production use.
for mac users:
and before Chrome 48, you could just use:
You can use this chrome plugin called "Allow-Control-Allow-Origin: *" ... It make it a dead simple and work very well. check it here: *
I use this sometimes, for posting a localhost front-end site to a localhost back-end API (e.g. React to an old .NET API). I created a separate shortcut on my Windows 10 desktop, so that it never is used for normal browsing, only for debugging locally. I did the following:-
"[PATH_TO_CHROME]\chrome.exe" --disable-web-security
You will get a warning on load of this browser, that it is not secure, just take care with what you browser on it. I tend to rename this new shortcut on the desktop, something in capital, and move it away from my other icons, so it can't be confused for normal Chrome.
Hope this helps!
On Windows 10, the following will work.
I find the best way to do this is duplicate a Chrome or Chrome Canary shortcut on your windows desktop. Rename this shortcut to "NO CORS" then edit the properties of that shortcut.
in the target add
--disable-web-security --user-data-dir="D:/Chrome"
to the end of the target path.your target should look something like this:
Update: New Flags added.