From 288e9236d0e11c83aa2361a12899c8960c12222b Mon Sep 17 00:00:00 2001 From: Darren Nathanael Date: Fri, 17 Nov 2023 10:53:35 -0600 Subject: [PATCH] Revert 239 CSP (#240) * Revert "CSP - Upstream Patch (#239)" This reverts commit 2ed25cc843b88dc2e0d14099221fe16d6daf52fd. * Remove 32bit --- dpaste/settings/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dpaste/settings/base.py b/dpaste/settings/base.py index 13a5019b..3b610561 100644 --- a/dpaste/settings/base.py +++ b/dpaste/settings/base.py @@ -116,9 +116,8 @@ SECURE_CONTENT_TYPE_NOSNIFF = True CSP_DEFAULT_SRC = ("'none'",) -# If you edit the CSS/JS update your 256 HASH here. -CSP_SCRIPT_SRC = ("'self'", "'unsafe-hashes'", "'sha256-634c702966ae36dcd81fe7a4c4756413be3b77af4f4a820651faecd1db1ab26a'",) -CSP_STYLE_SRC = ("'self'", "'unsafe-hashes'", "'sha256-7ac9cd7ab2811dac84cdc031d0acf0f355a2ab619f633b857f6db5b4c2b45361'") +CSP_SCRIPT_SRC = ("'self'", "'unsafe-inline'") +CSP_STYLE_SRC = ("'self'", "'unsafe-inline'") LOGGING = { "version": 1,