Disable the browser's same-origin policy method

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.
Here Insert Picture Description

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 Here Insert Picture Description
, or homologous to disable the policy by modifying the parameters in the shortcut, as shown in FIG.
Here Insert Picture Description

2.3 Firefox browser

FireFox disabled disposed, in the address bar about:config, then filtered security.fileurifound security.fileuri.strict_origin_policy, double-click to set to false, as shown in FIG.
Here Insert Picture Description

3. References

Guess you like

Origin blog.csdn.net/cgs1999/article/details/90751757