Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome disable web security same origin policy no more working

After updating my chrome, I'm unable to disable web security using the --disable-web-security command. I've tried lot of options, but without success, including using the --user-data-dir flag.

This is the command I'm running:

start "" "c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="d:/_chrome_dev" --disable-web-security

I'm getting the following error:

You are using unsupported command --disable-web-security

like image 711
Raiper34 Avatar asked Aug 05 '16 10:08

Raiper34


People also ask

How to fix Google Chrome not enforcing same origin policy?

The following are the steps to achieve chrome web browser to be working in disabled security mode so that it do not enforces same origin policy on windows: Go to the “Desktop” select the “Google chrome” icon and “right click” on it, then go to its “Properties” as shown in image below:-.

How to disable same origin policy in IE and Edge browser?

For disabling same origin policy or allowing cross origin resources sharing in IE and Edge browser on windows, go with steps as follows: Open Internet Explorer browser. Go to: tools -> Internet Options -> Security.

How to enable or disable security mode for Chrome browser on Windows?

For Chrome Browser on Windows. The following are the steps to achieve chrome web browser to be working in disabled security mode so that it do not enforces same origin policy on windows: Go to the “Desktop” select the “Google chrome” icon and “right click” on it, then go to its “Properties” as shown in image below:-.

How to launch Google Chrome with same-origin policy disabled in Python?

Open command prompt and run following command. Open terminal and run Chrome in command line with arguments. Run following command in terminal. Here is a helper script written in Python to launch Chrome with the Same-Origin policy disabled. The script are tested under Python3.6.


2 Answers

For mac OS, the steps are as follows:

1 - Close down chrome. All instances of chrome must be closed first.

2 - Open Terminal

3 - Run the following command:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir
like image 100
Allan Bowe Avatar answered Sep 22 '22 06:09

Allan Bowe


I used this Chrome plugin instead and it wokrs :) https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi

like image 25
Raiper34 Avatar answered Sep 22 '22 06:09

Raiper34