From ddf41de3fbd7a59eaf1886530545f394141c4eec Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 19 Oct 2020 09:35:16 +1100 Subject: [PATCH] add csp for image load from blob so attachments are loaded correctly --- about.html | 2 +- background.html | 8 +-- background_test.html | 7 +- debug_log.html | 2 +- js/views/inbox_view.js | 57 +--------------- password.html | 2 +- permissions_popup.html | 2 +- stylesheets/_conversation.scss | 65 ------------------- test/index.html | 6 +- .../conversation/SessionConversation.tsx | 15 +++-- 10 files changed, 18 insertions(+), 148 deletions(-) diff --git a/about.html b/about.html index 078515f0c..6c1a9ddf8 100644 --- a/about.html +++ b/about.html @@ -7,7 +7,7 @@ font-src 'self'; form-action 'self'; frame-src 'none'; - img-src 'self'; + img-src 'self' blob: data:; media-src 'self' blob:; object-src 'none'; script-src 'self'; diff --git a/background.html b/background.html index 4e6df89d3..b9a9f5299 100644 --- a/background.html +++ b/background.html @@ -13,7 +13,7 @@ font-src 'self'; form-action 'self'; frame-src 'none'; - img-src 'self'; + img-src 'self' blob: data:; media-src 'self' blob:; object-src 'none'; script-src 'self'; @@ -56,11 +56,7 @@ - + - - +