Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The `--disable-web-security` command is seems no longer working

The command --disable-web-security to allow for cross domain requests on Chrome is no longer working, I presume due to the latest update.

Is there a workaround for this, besides downloading an older version of chrome and disabling updates?

Might as well ask in the same question, the javascript snippet suggested to turn off web security in Firefox never works for me:

try {     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) {     alert("UniversalBrowserRead failed"); } 

The page always alerts UniversalBrowserRead failed.

like image 507
John Smith Avatar asked Aug 02 '11 20:08

John Smith


People also ask

How do I know if Chrome security is disabled?

In Windows - Right Click (or Shift+right click, in-case of taskbar) on Chrome Icon. Select Properties. In "Target" text-box, add --disable-web-security flag. Click Ok and launch chrome.


2 Answers

Kill all instances and try again. Had the same problem today and after I killed chrome it works.

like image 65
arek Avatar answered Oct 09 '22 18:10

arek


Open the task manager in your laptop or computer and try to kill all the existing chrome* instances in you system and run the shortcut with "\Google\Chrome\Application\chrome.exe --disable-web-security"

It always resets when you restart the laptop or computer so, you may need to do this step when you re-start the system.

like image 45
Jaishankararam Avatar answered Oct 09 '22 18:10

Jaishankararam