Cross-domain AJAX calls in Safari and Chrome

2019-02-02 15:17发布

问题:

Firefox and Internet Explorer both have settings where a user may enable forbidden cross-domain calls.

Is there a similar setting or option in Safari and/or Chrome?

回答1:

Not sure about safari, but Chrome has a command line switch for this:

chrome.exe --disable-web-security

You can view a full list (as of when it was posted!) of command line options for chrome here.