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

John Smith picture John Smith · Aug 2, 2011 · Viewed 54.8k times · Source

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.

Answer

arek picture arek · Feb 20, 2012

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