Chrome: disable the same origin policy for localhost

I am developing a phonegap / cordova application, it is not bound by the same origin policy of sites that concern me. I use the Chrome browser for quick development, which I can’t do if it is linked by the same origin policy. There is an excellent 3-year answer on how to completely disable cross-origin policies. But having a browser open with completely disabled web security seems like a recipe for disaster.

Since anser is 3 years old, I hope that now there may be a way to disable the same origin policy for each URL. Either that all the web pages on the local host are great for cross origin or that you can always request data from www.example.com and www.otherexample.com?

+4
source share
1 answer

You can use a violinist, one of his auoto answer options is fake cors respnce, omong many more. I use it quite a bit. It can alsow fake api responce with a local file, I find it completely priceless when developing frontend before backand.

0
source

All Articles