Trying to disable Chrome same origin policy Trying to disable Chrome same origin policy google-chrome google-chrome

Trying to disable Chrome same origin policy


You need to use both arguments. This is how I run it on my mac.

open -a Google\ Chrome --args --disable-web-security -–allow-file-access-from-files

This is how it should be for windows:

"C:\PathTo\Chrome.exe" –allow-file-access-from-files -disable-web-security


To disable chrome web security on mac use this command on terminal

$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="/tmp/chrome_dev_session" --disable-web-security

if $ open -a Google\ Chrome --args --disable-web-security -–allow-file-access-from-files dosen't help


You should request through a HTTP protocol

Here's an answer quite simple to do it: https://stackoverflow.com/a/23118676/1585438