Chrome Disable Same-Origin Policy in Chrome

For Developing local the same Origin Policy from Chrome can disturb the development process . Changing some Chrome Flags help to work on your local host without that error

Flags

–allow-file-access-from-files

–disable-web-security

With disabled Flags you can make Ajax request to other domains for testing keep in mind Chrome is running in insecure mode . Alternative you can make a second Shortcut for chrome to load your Developer version with that Flags disabled.

For MAC  /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome –allow-file-access-from-files –disable-web-security

Tags:


Code Cowboy

Exploring and Notes about interesting code snipets

Leave a Reply

Your email address will not be published. Required fields are marked *