Cross-origin in Chrome and cross-origin in chrome
To configure cross-origin for the new version of Chrome browser, you need to create a user data folder to save the browser cache, history, favorites, and other data.
Windows Chrome cross-Origin
1. Download Chrome 64-bit Green Edition, decompress it, and create a shortcut on the desktop
2. Right-click the shortcut, select properties, and add the following content to the target:
-- Disable-web-security -- user-data-dir = D: \ chrome \ UserData
3. Create the D: \ chrome \ UserData folder.
4. Exit the currently opened Chrome browser, double-click the shortcut, and start the Chrome browser. If the cross-origin prompt is displayed, the configuration is successful.
Mac system Chrome cross-Origin
1. In the shell folder on the desktop, create the/chrome. sh file and enter the following content:
#! /Bin/bash open-a "Google Chrome" -- args -- disable-web-security -- user-data-dir =/Users/administrator/UserDataecho start Chrome browser --- cross-origin successful!
2. Change the permission of the script file to 755.
chmod 755 chrome.sh
3. Create the/Users/administrator/UserData folder.
4. Exit the currently opened Chrome browser and execute the script to automatically open the Chrome browser. If the cross-origin security prompt is displayed, the configuration is successful.