I am currently using webdriver io via nodejs with selenium standalone, which all works fine until I try to do CORS based requests. I am currently using firefox as the test browser and it throws an error due to the CORS request to another domain.
The server is configured to return the correct headers for CORS and the XHR object is configured to allow CORS. I know these work as when I am manually using the site via firefox/chrome it works as expected, however when I am testing it just seems to blow up, which baffles me as the server and client are configured for CORS, and there is no HTTPS involved in the current tests.
So is there anything special I have to do to get CORS working in the test browsers? I know Selenium boots the browsers up in its own profile but I cannot find any details relating to cors in the configuration for the browser settings, nor can I find any dependentFeatures related to the CORS implementations.
I am happy to provide more information if it would help yield an answer.