firefox
Firefox To cancel a cross-domain restrictions XMLHttpRequest
- From about: config = to true in the setting of signed.applets.codebase_principal_support; (address bar about: config firefox can be set)
- Similar to the following code is added before the open function code
-
try { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); } catch (e) { alert("Permission UniversalBrowserRead denied."); }
Chrome
The version number of the previous 49 cross-domain settings
Target input box in the property page plus --disable-web-security as shown below:
The version number of cross-domain set up after 49
After the chrome version rose to 49, the cross-domain set strict than before, on the open command after adding --disable-web-security also need to give the new directory user's personal information. As we all know is the need to log in chrome gmail address with a browser, it will generate a directory to store personal information Once logged in, save the user's favorites, history and other personal information. After 49 editions, if you set chrome browser supports cross-domain mode, you need to specify a directory of personal information, and can not use the default directory, estimated to be afraid chrome browser users do not use cross-domain mode disclose their personal information (mainly cookie, many sites login token information is stored in a cookie).
Specific practices:
1. Create a directory on your computer, for example: C: \ MyChromeDevUserData
2. Objectives input box in the property page add --disable-Web-Security-the Data --user-dir = C: \ MyChromeDevUserData , - the value of user-data-dir is just the new directory.
3. Click Apply and OK to close the Properties page, and open the chrome browser.
Open again chrome, found "--disable-web-security" related tips, instructions chrome but also normal cross-domain work.