-
Notifications
You must be signed in to change notification settings - Fork 9
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
CSP exceptions #63
CSP exceptions #63
Conversation
How does it work with just |
That's what I was trying to explain. It works because the older jQuery from back when the search was written uses native |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't notice it was just for the Grunt site.
It's an interesting aspect of our switch of globalEval
from indirect eval
to an inline script tag - required CSP is actually less secure in the latter.
yes, in a way. But in defense of the script tag, it allows the user to theoretically set a |
**miscweb** - script-src: add 'wasm-unsafe-eval' for WebAssembly-driven search on bugs.jquery.com, bugs.jqueryui.com, and plugins.jquery.com - img-src: allow secure.gravatar.com images on plugins.jquery.com - media-src: allow content.jquery.com media on podcast.jquery.com **grunt** - script-src: add 'unsafe-eval' for the search functionality on gruntjs.com/plugins - the datatables plugin uses jQuery's eval. While later versions of jQuery switched to using script tags for eval, it would still require an exception. The best solution would be to re-implement search, but that will take time.
Squashed/rebased and added an exception for podcast.jquery.com to load media (i.e. podcast audio) from content.jquery.com. |
miscweb
wasm-unsafe-eval
was not yet supported in Safari, it seems to be now, according to MDN and caniuse. I'll double check this after deployment.wasm-src
attribute with SRI hash validation. We should be able to add that in the future and remove thewasm-unsafe-eval
.grunt
unsafe-inline
exception. The best solution would be to re-implement search, but that would take time.Ref #54