Remove CORS header from static files
This commit is contained in:
parent
e7c4acce8b
commit
1e9ff9f24b
1 changed files with 2 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue