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_ROOT = BASE_DIR / "collected-static"
STATIC_URL = "/static/" STATIC_URL = "/static/"
WHITENOISE_ALLOW_ALL_ORIGINS = False
WHITENOISE_SKIP_COMPRESS_EXTENSIONS = list( WHITENOISE_SKIP_COMPRESS_EXTENSIONS = list(
WhitenoiseCompressor.SKIP_COMPRESS_EXTENSIONS WhitenoiseCompressor.SKIP_COMPRESS_EXTENSIONS
) + ["map"] ) + ["map"]