playwright-python
playwright-python copied to clipboard
[Question]: How to resolve CORS when page.evaluate method executes Javascript
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