playwright-python icon indicating copy to clipboard operation
playwright-python copied to clipboard

[Question]: How to resolve CORS when page.evaluate method executes Javascript

Open HangJau opened this issue 3 years ago • 0 comments

Your question

Hello developers! I'm having a CORS issue that I've reported when executing a JavaScript script via the page.evaluate method. How to deal with CORS issues in playwrights. Getting JavaScript to work? I have manually turned on chromium-1015 and configured Block insecure private network requests to Disabled

Error message: XMLHttpRequest accessing "http://127.0.0.1:12345/getrsp" from origin "http://xxxx.com" has been blocked by CORS policy: The requesting client is not a security context, the resource is located in the more-private address space local . Failed to load resource: net::ERR_FAILED

HangJau avatar Sep 20 '22 02:09 HangJau