diff --git a/README.md b/README.md index 30351e2..5ac4b7e 100644 --- a/README.md +++ b/README.md @@ -67,3 +67,6 @@ The Paragraph Tool supports these configuration parameters: } ``` +## CSP support + +If you're using Content Security Policy (CSP) pass a `nonce` via [``](https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean) in your document head. \ No newline at end of file diff --git a/package.json b/package.json index 76c5c90..ba08362 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/paragraph", - "version": "2.11.3", + "version": "2.11.4", "keywords": [ "codex editor", "paragraph", diff --git a/vite.config.js b/vite.config.js index 8994d28..17897d6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,6 +20,6 @@ export default { }, plugins: [ - cssInjectedByJsPlugin(), + cssInjectedByJsPlugin({useStrictCSP: true}), ], };