diff --git a/README.md b/README.md index 5d90278..e49fc12 100644 --- a/README.md +++ b/README.md @@ -91,3 +91,7 @@ To localize UI labels, put this object to your i18n dictionary under the `tools` ``` See more instructions about Editor.js internationalization here: [https://editorjs.io/internationalization](https://editorjs.io/internationalization) + +## 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 9c01551..25b585e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/list", - "version": "1.9.0", + "version": "1.9.1", "keywords": [ "codex editor", "list", diff --git a/vite.config.js b/vite.config.js index 79161a9..25d9183 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})], };