Remove CORS header from static files

This commit is contained in:
Jake Howard 2022-08-28 22:28:43 +01:00
parent e7c4acce8b
commit 1e9ff9f24b
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -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"]