cuprite icon indicating copy to clipboard operation
cuprite copied to clipboard

Having issues trying to get CORS working

Open gregoryduckworth opened this issue 5 years ago • 6 comments

When trying to get a test working which creates a request across two domains, the status received from the other domain is a 403, however setting the browser options to disable-web-security doesn't resolve the issue and performing the same test in a browser manual works without any issues.

Is there something radically different in the way Cuprite handles CORS?

gregoryduckworth avatar Mar 13 '19 18:03 gregoryduckworth

@SeTeM did you try to write that test for CORS on headless Chrome?

route avatar Mar 14 '19 06:03 route

@route, no, I was working with CSP, not CORS

syabruk avatar Mar 14 '19 07:03 syabruk

@SeTeM oh sorry, confused

route avatar Mar 14 '19 07:03 route

@gregoryduckworth cuprite by default sets disable-web-security did you try removing it?

route avatar Mar 14 '19 07:03 route

@route - I've tried setting the disable-web-security to true in the browser_options when registering the driver but still no luck.

gregoryduckworth avatar Mar 14 '19 11:03 gregoryduckworth

@gregoryduckworth I'll take a look if you can provide an isolated test

route avatar Mar 14 '19 14:03 route