Affects Version/s: Master
Fix Version/s: None
Mac OS X Yosemite (10.10.5) Chrome 47.0.2526.73
I have been running into issues with a Cordova project of mine where the security settings on Chrome force the browser to run an OPTIONS HTTP request before any POST request is made. When debugging on Android and iOS, I discovered that these OPTIONS requests are not sent before the POST requests.
I did some research and found that these OPTIONS requests are being sent because of Chrome's same origin policy settings:
to test this and found that after running this command and then running chrome with
My application worked and the HTTP OPTIONS requests were no longer being sent
I think that Chrome would more closely replicate the other platforms if we disabled its "Same Origin Policy" security settings using the
flag when launching Chrome.
The flag's function is documented below:
I see where in the code this can be done and I am wondering if this is worth submitting a pull request for.
src/browser.js Line 93: