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

[hosted-plugin][webview] Error: Refused to apply inline style because it violates the following Content Security Policy #5694

Closed
kittaakos opened this issue Jul 11, 2019 · 0 comments · Fixed by #6465
Assignees
Labels
bug bugs found in the application webviews issues related to webviews

Comments

@kittaakos
Copy link
Contributor

Start the webview-sample as a hosted instance. If you do not know how to use a VS Code sample as a hosted instance, read this wiki page.

webviews-main.ts:100 Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'none'". Either the 'unsafe-inline' keyword, a hash ('sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

I do not know if we can do anything with this but since both running on localhost, hopefully there is a solution.

@kittaakos kittaakos added bug bugs found in the application webviews issues related to webviews labels Jul 11, 2019
@akosyakov akosyakov self-assigned this Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application webviews issues related to webviews
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants