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

Refused to create a worker from blob #24

Closed
JCKodel opened this issue Feb 28, 2018 · 6 comments
Closed

Refused to create a worker from blob #24

JCKodel opened this issue Feb 28, 2018 · 6 comments

Comments

@JCKodel
Copy link

JCKodel commented Feb 28, 2018

Refused to create a worker from 'blob:http://localhost:8080/87c22970-8fee-44d9-982e-00aafe130b22' because it violates the following Content Security Policy directive: "default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:". Note that 'worker-src' was not explicitly set, so 'default-src' is used as a fallback.

Current content security policy: default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:

I don't have the slightest idea of how content security policy works, so, it would be nice some light in the README.md =)

@sylvaindumont
Copy link
Contributor

@JCKodel you have to add worker-src blob: to your csp header and script-src blob: as a fallback.
But If you want to keep it simple just add blob: at the end of your default-src

@developit
Copy link
Owner

@sylvaindumont want to PR that into the README?

@sylvaindumont
Copy link
Contributor

sure #28

@developit
Copy link
Owner

Update: I've switched Greenlet over to use Data URIs. Should we update #28?

@developit
Copy link
Owner

Thanks, merged the PR!

@cochiseruhulessin
Copy link

Whats the point of using CSP if this is the solution?

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

4 participants