New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refused to connect to ... because it violates the document's Content Security Policy #5418
Comments
@vnikolay I'm getting this issue too, it was not there before. I use → await page.waitForXPath(inputElementXPath); puppeteer_evaluation_script__:4 Refused to connect to 'data:image/png;base64, ...' because it violates the following Content Security Policy directive Would really appreciate any help - this broke my app. |
I found this setting: It seems that the error has gone, but it still does not load a picture, don't know why. |
@vnikolay I tried the same - setBypassCSP(true) - and got the same result. No error, but the image does not load |
@mazlano27 It looks like the uploader is broken in last version : #5363 |
@vnikolay thank you for the the update. Will revert back to 2.0 for now |
This should be fixed as of 532ae57 as we changed the underlying implementation to use |
Hey @paullewis - I updated to v3.0 and tried to run .uploadFile on an input that accepts image files. The file is uploaded as a document instead of an image - and this impacts the UI for the user. This was not the case is v2.0 |
It won't be in 3.0.0 as it's not part of any release. In order to test it you'll need to |
Thank you for the clarification, will wait for the release with the fix 👍 |
When I try to upload image by fileChooser:
I am getting this error in browser:
puppeteer_evaluation_script:4 Refused to connect to 'data:image/jpeg;base64,/9...' because it violates the document's Content Security Policy
How can I avoid this?
The text was updated successfully, but these errors were encountered: