1 Introduction
Front-end and back-end when the FBI will always involve cross-domain, cross-domain usually our main way is through cross-domain CORS, but cross-domain by CORS sometimes involve data security issues, this time we can disabling the local browser cross-domain origin policy to the FBI.
2. Prohibited Method
2.1 IE browser
IE disabled origin policy settings, go to IE's Internet Options settings, then select Security, and then select Custom level, then drop down to find the "Access data sources across the network", choose enabled.
2.2 Chrome browser
You can disable the same-origin policy by adding Chrome startup parameters, the parameters are as follows
--disable-web-security
By the way to disable the start command origin policy, as shown below
, or homologous to disable the policy by modifying the parameters in the shortcut, as shown in FIG.
2.3 Firefox browser
FireFox disabled disposed, in the address bar about:config
, then filtered security.fileuri
found security.fileuri.strict_origin_policy
, double-click to set to false, as shown in FIG.
3. References
- Disable the browser's same-origin policy method
https://www.cnblogs.com/Breaveleon/p/6829222.html