Modify the browser configuration attributes of cross-domain action --- the way to solve the development machine

Development phase to solve the cross-domain problem, a browser can be configured by modifying the properties, homologous to close the browser protection policy, in order to achieve cross-domain to solve the problem, there are the following three ways:
1. the MAC system, the terminal input snippet

"open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/admin/MyChromeDevUserData/"


2.window system, cmd input snippet

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --args --disable-web-security --user-data-dir=D:\temp


3. window The second way: the shortcut icon copy icon, right property, in the "target" at the end of the space added 

--args --disable-web-security --user-data-dir=D:\temp

 

Under what circumstances would use the above way to set the browser configuration: when you need to call when the computer camera, if the browser has been the browser is configured, you can call a normal PC camera.
Browser attributes are configured signs, see the following tips
you are using an unsupported command-line flag: - disable-web-security. Stability and security will decline.
Modify the browser configuration After resolving cross-domain, can access other domains cookie, if on the development machine

Guess you like

Origin www.cnblogs.com/ChineseLiao/p/11330276.html