-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat: Enable useStrictCSP for cssInjectedByJsPlugin #143
feat: Enable useStrictCSP for cssInjectedByJsPlugin #143
Conversation
Thanks for mention this link. Please, add a line about this option in Readme |
@neSpecc Let me know if the readme addition makes sense. I'll also be opening up PRs in header, marker, paragraph and list along with their respective readme updated shortly |
29e1748
to
c8f8047
Compare
c8f8047
to
37feca2
Compare
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.
Please, update a patch version in package.json
Thanks @jsip! PRs to other tools are welcomed |
@neSpecc Thank you for the quick merge! I've also opened PRs in editor-js/marker, editor-js/paragraph, editor-js/header and editor-js/list The main repo for editor.js could also use this config |
Enables useStrictCSP when injecting styles. See https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean
Does not throw any errors if meta property is not present
useStrictCSP ? `elementStyle.nonce = document.head.querySelector('meta[property=csp-nonce]')?.content;` : ''
Updated README to reflect the out of the box support