Is there way to disable CORS check using RemoteWebDriver for SauceLabs
问题 Question says it all, I m trying to execute some selenium tests on SauceLabs, the test loads a webpage that makes a cross domain request. I was thinking is there a way to disable CORS, in platform-independent way through code. 回答1: While using ChromeDriver / Chrome combo to disable cors check you can use the --disable-web-security argument. which is defined in content_switches.cc as: // Don't enforce the same-origin policy. (Used by people testing their sites.) const char kDisableWebSecurity[