Add base-uri and frame-ancestors to CSP
The archweb website contains no <base> elements so this can be disallowed. Also set frame-ancestors is set to the same value as X-Frame-Options. Signed-off-by: Jelle van der Waa <jelle@archlinux.org>
This commit is contained in:
parent
b737f2b4c3
commit
aae6e43fcc
@ -98,6 +98,8 @@
|
||||
CSP_SCRIPT_SRC = ("'self'",)
|
||||
CSP_INCLUDE_NONCE_IN = ['script-src']
|
||||
CSP_IMG_SRC = ("'self'", 'data:',)
|
||||
CSP_BASE_URI = ("'none'",)
|
||||
CSP_FRAME_ANCESTORS = ("'none'",)
|
||||
|
||||
# Use new test runner
|
||||
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
|
||||
|
Loading…
Reference in New Issue
Block a user