Due to the so called same-origin policy, browsers deny AJAX requests to service endpoints in case the domain/subdomain, protocol, or port differ from the app’s domain/subdomain, protocol, or port.

The browser refuses to connect to a remote URL directly for security reasons and we need a workaround:

In Google Chrome, you can easily disable same-origin policy of Chrome by running Chrome with the following command: 

[here-your-path-to-chrome-installation-dir]\chrome.exe --disable-web-security --user-data-dir.

Make sure that all instances of Chrome are closed before you run the command above. This will allow all web sites to break out of the same-origin policy and connect to the remote service directly.

How to disable same-origin policy of Chrome?如何禁止chrome同源策略

相关文章:

  • 2021-09-01
  • 2021-12-10
  • 2021-11-22
  • 2021-12-02
  • 2021-11-22
  • 2022-01-01
  • 2021-12-02
  • 2021-11-21
猜你喜欢
  • 2021-02-25
  • 2021-11-03
  • 2021-10-19
  • 2021-12-02
  • 2021-11-22
  • 2021-12-06
  • 2022-01-08
  • 2019-12-17
相关资源
相似解决方案