Skip to content

Commit

Permalink
Merge pull request #143 from stampedai/jsip-master/viteCssPlugin-UseS…
Browse files Browse the repository at this point in the history
…trictCSP

feat: Enable useStrictCSP for cssInjectedByJsPlugin
  • Loading branch information
neSpecc authored Dec 11, 2023
2 parents 48e1f98 + 7395053 commit 2948cd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ This Tool returns `data` in the following format
}
```

## CSP support

If you're using Content Security Policy (CSP) pass a `nonce` via [`<meta property="csp-nonce" content={{ nonce }} />`](https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean) in your document head.

# Support maintenance 🎖

If you're using this tool and editor.js in your business, please consider supporting their maintenance and evolution.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@editorjs/table",
"description": "Table for Editor.js",
"version": "2.3.0",
"version": "2.3.1",
"license": "MIT",
"repository": "https://github.com/editor-js/table",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export default {
VERSION: JSON.stringify(VERSION),
},

plugins: [cssInjectedByJsPlugin()],
plugins: [cssInjectedByJsPlugin({useStrictCSP: true})],
};

0 comments on commit 2948cd7

Please sign in to comment.