From 3783be6b0f08921a89d44ba6d22339fb958bd81f Mon Sep 17 00:00:00 2001 From: Rory Mercer <43172490+Rorymercer@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:58:14 +0000 Subject: [PATCH] Update README.md clarifying Content Security Policy handling Added a gotcha to the pre-existing section giving users more information on how Content Security Policies are applied by this package and how to resolve CSP issues thrown by the package. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cdc4e54..4c9bf3e 100644 --- a/README.md +++ b/README.md @@ -367,6 +367,8 @@ Ex: * typically providing array index as keys won't work as key should be linked to the items content * cloned elements should provide updated keys, it is doable using the [clone props](#clone) for example + - With strict Content Security Policy (CSP) enabled in report only mode, Vue.draggable will cause a warning in the console. However, with a strict CSP in enforcement mode, [this exception is caught](https://github.com/SortableJS/Vue.Draggable/blob/master/dist/vuedraggable.common.js#L1517) and the component works normally. + ### Example * [Clone](https://sortablejs.github.io/Vue.Draggable/#/custom-clone)