Note that this method is not available after the Chrome 48 release
Recommend a new way to implement local cross-domain debug online resources and search for Chrome plugins Allow-Control-Allow-Origin: *
.
Https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
Chrome under Windows System (WIN7)
1. Close all open chrome. (important). Otherwise, there will be no effect!
2, create a shortcut to Chrome, the goal of modifying the shortcut is:
1
|
"C:\program Files\google\chrome\application\chrome.exe"--args--disable-web-security
|
3. Double-click the Chrome shortcut we created to open chrome and "you're using an unsupported command line tag: –disable-web-security." Stability and security will decrease ", indicating that you have canceled the cross-domain limit, and you can call data across domains arbitrarily.
Mac OS under
1
|
/applications/google\ chrome.app/contents/macos/google\ Chrome--disable-web-security
|
Or
1
|
Open---args--disable-web-security
|
To open the Apple Safafi using the command line:
1
|
Open---args--disable-web-security
|
Original address: https://www.uis.cc/2015/08/17/disable-web-security/
Go to Chrome command line: disable-web-security implementing browser cross-domain