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

Content Security Policy error #11

Open
peterkracik opened this issue May 14, 2020 · 6 comments
Open

Content Security Policy error #11

peterkracik opened this issue May 14, 2020 · 6 comments

Comments

@peterkracik
Copy link

Hi,
I'm getting this error:

Content Security Policy: The page’s settings blocked the loading of a resource at
blob:https://localhost/e674b31d-9638-6947-880b-d26cbd237e8d (“worker-src”).

what could be the reason and the solution?

@skurgansky-sugarcrm
Copy link

same on android in cordova app

@skurgansky-sugarcrm
Copy link

skurgansky-sugarcrm commented Sep 7, 2020

@peterkracik add this to your <head> in index.html

<meta http-equiv="Content-Security-Policy" content="
     default-src gap://ready file: blob: *;
     img-src 'self' data: file: blob: *;
     style-src 'self' 'unsafe-inline' file: blob: *;
     worker-src 'self' 'unsafe-inline' file: blob: *;
     script-src 'self' 'unsafe-inline' 'unsafe-eval' *;">

@peterkracik
Copy link
Author

@skurgansky-sugarcrm thank you :)
I had to find a different solution, but I hope it will help others!

@mrctrifork
Copy link

@peterkracik could you share which approach you took?

@peterkracik
Copy link
Author

@mrctrifork actually we decided to don't allow to upload heic file at the end

@mrctrifork
Copy link

@peterkracik We are about to follow the same path…

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

3 participants