From 63fe04b3553dd28aac1874dce56a72344b1962ff Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Fri, 10 Nov 2023 01:59:35 -0500 Subject: [PATCH] docs: add info about CSP compliance --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index acd071338..843862e10 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,11 @@ const ms1 = multipleSelect('#select1', { ] }); ``` +with this code in place, we can use the following CSP meta (which is what we use in the lib demo, ref: [index.html](https://github.com/ghiscoding/multiple-select-vanilla/blob/main/demo/index.html#L7)) +```html + +``` +**Note** in our demo we are actually also using `unsafe-inline` because we are using Vite (which is not CSP compliant in Dev mode), but the library should work nonetheless without `unsafe-inline`. ### Used by This fork was created mostly to drop jQuery, and is used by a few other libraries that I maintain: