Skip to content

Instantly share code, notes, and snippets.

@dongyuwei
Last active October 8, 2021 12:23
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save dongyuwei/5695808 to your computer and use it in GitHub Desktop.
Save dongyuwei/5695808 to your computer and use it in GitHub Desktop.
how to disable same origin policy in chrome , for ubuntu users.

how to disable same origin policy in chrome , for ubuntu users.

vim /usr/share/applications/google-chrome.desktop

Exec=/opt/google/chrome/google-chrome --incognito --disable-web-security

--disable-web-security is the key.

@makisp
Copy link

makisp commented May 18, 2018

Thanks, it helped!

@kenji-getpowered
Copy link

but how to launch it just once

@n8behavior
Copy link

$ google-chrome --disable-web-security

@torian257x
Copy link

doesnt work... none of these solutions. At least not with a local file

@torian257x
Copy link

torian257x commented Apr 20, 2020

actually my bad... I closed all chrome windows. Doesnt mean all chrome browsers were actually closed.... ppffff
so me sure to kill all chrome processes

this worked for me:

/usr/bin/google-chrome-stable --disable-web-security --user-data-dir=/home/jossnaz/.config/google-chrome/

@Luchooo
Copy link

Luchooo commented Jun 1, 2020

actually my bad... I closed all chrome windows. Doesnt mean all chrome browsers were actually closed.... ppffff
so me sure to kill all chrome processes

this worked for me:

/usr/bin/google-chrome-stable --disable-web-security --user-data-dir=/home/jossnaz/.config/google-chrome/

It's working for me thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment