From 1e9ff9f24be4bb35a77441cb3dc90b45a97207e8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 28 Aug 2022 22:28:43 +0100 Subject: [PATCH] Remove CORS header from static files --- website/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/settings.py b/website/settings.py index 5216042..6505db1 100644 --- a/website/settings.py +++ b/website/settings.py @@ -161,6 +161,8 @@ if not DEBUG: STATIC_ROOT = BASE_DIR / "collected-static" STATIC_URL = "/static/" +WHITENOISE_ALLOW_ALL_ORIGINS = False + WHITENOISE_SKIP_COMPRESS_EXTENSIONS = list( WhitenoiseCompressor.SKIP_COMPRESS_EXTENSIONS ) + ["map"]