From 9cc2b76383d9d165df650629a1f4a097261fdc19 Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Wed, 13 Mar 2024 23:29:22 -0400 Subject: [PATCH] Switch to selectlist fork with nonce support (#141) --- config/importmap.rb | 2 +- config/initializers/content_security_policy.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/importmap.rb b/config/importmap.rb index 295c83d..c35e82d 100644 --- a/config/importmap.rb +++ b/config/importmap.rb @@ -7,6 +7,6 @@ pin "@github/webauthn-json/browser-ponyfill", to: "https://ga.jspm.io/npm:@github/webauthn-json@2.1.1/dist/esm/webauthn-json.browser-ponyfill.js" pin "url-safe-base64", to: "https://ga.jspm.io/npm:url-safe-base64@1.3.0/src/index.js" pin_all_from "app/javascript" -pin "selectlist", to: "https://esm.sh/selectlist-polyfill@0.3.0", preload: true +pin "selectlist", to: "https://esm.sh/gh/cjdenio/selectlist-polyfill@ff6dd0f366/src/polyfill.js" pin "cursor-chat", to: "https://esm.sh/gh/obl-ong/cursor-chat-actioncable@9befe0089b/dist/cursor-chat.es.js" pin "local-time", to: "https://ga.jspm.io/npm:local-time@3.0.2/app/assets/javascripts/local-time.es2017-esm.js" diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index e83a56c..258cbc7 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -13,7 +13,6 @@ policy.script_src :self, "https://rebound.postmarkapp.com", "https://code.ionicframework.com", "https://cdn.jsdelivr.net/npm/toastify-js" policy.style_src :self, "https://unpkg.com/cursor-chat/dist/style.css", "https://code.ionicframework.com", "https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" policy.style_src_attr :self, "'unsafe-inline'" - policy.style_src_elem :self, "'unsafe-inline'" # Specify URI for violation reports # policy.report_uri "/csp-violation-report-endpoint" end