Setting method
Open a new cross-domain chrome window implementation method:
1. Open Terminal
2. Enter the following command (you need to replace yourname in the path )
open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/yourname/MyChromeDevUserData/
Notice
Some articles on the Internet do not add the folder name after the --user-data-dir parameter, and the setting is unsuccessful.
Discover
When you open chrome for the first time, there is a "--disable-web-security" related prompt with a yellow background color, indicating that the browser settings are successful across domains.
When you execute the above command line again, there will be no more relevant prompts, but it can still be cross-domain!
http://www.mamicode.com/info-detail-1668526.html
window creates a shortcut and adds startup parameters
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --allow-file-access-from-files --disable-web-security --user-data-dir=~/ChromeUserData/