diff --git a/README.md b/README.md index 694445b..ca6aa5a 100644 --- a/README.md +++ b/README.md @@ -59,3 +59,6 @@ Marked text will be wrapped with a `mark` tag with an `cdx-marker` class. } ``` +## 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. diff --git a/package.json b/package.json index 8629d6d..0a80b32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/marker", - "version": "1.4.0", + "version": "1.4.1", "keywords": [ "codex editor", "marker", diff --git a/vite.config.js b/vite.config.js index ccaee8d..ef03bb6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,5 +19,5 @@ export default { VERSION: JSON.stringify(VERSION), }, - plugins: [cssInjectedByJsPlugin()], + plugins: [cssInjectedByJsPlugin({useStrictCSP: true})], };