Skip to content
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

[Question] Is there a way to get around website's CSP? #1383

Closed
VikramTiwari opened this issue Mar 13, 2020 · 1 comment
Closed

[Question] Is there a way to get around website's CSP? #1383

VikramTiwari opened this issue Mar 13, 2020 · 1 comment

Comments

@VikramTiwari
Copy link

While uploading a file, the file is converted into data URL. This generally works to upload the file but seems like websites can have their CSP block data URL based uploads.

Is there a way to get around this? Probably upload files in a way where it's not converted to data URL.

Some more details here: puppeteer/puppeteer#5507

@VikramTiwari
Copy link
Author

For folks coming to this. You can use DOM.setFileInputFiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant