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

Update CSP to include content from minimum resources #34

Merged
merged 1 commit into from
Sep 17, 2019

Conversation

utsavm9
Copy link
Contributor

@utsavm9 utsavm9 commented Aug 30, 2019

Hi!

Your plugin was mentioned in microsoft/vscode#79340 as one of the extensions lacking content-security-policy in its webview. While I found that you did use one, your policy was not as restrictive as possible.

I have removed the self property as it was not needed. Your extension uses only script, style and images resources, so using the default-src included too many resources like fonts, iframes, media and many more (See in MDN).

I have tested the new policy in the Webview Developer Tools and it works!

@vitaliymaz
Copy link
Owner

Thank you for the fix, @utsavm9.

@vitaliymaz vitaliymaz merged commit 2a35ce5 into vitaliymaz:master Sep 17, 2019
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

Successfully merging this pull request may close these issues.

2 participants