mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
django: Remove use of X-XSS-Protection header
- This header is not supported by modern browsers[1] - Our Content-Security-Policy header already does a better job. - Django 4.0 removed this setting and does nothing with it. Links: 1) https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection Tests: - Without the patch X-XSS-Protection header is sent and with the patch it is not sent. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ee05f98833
commit
da24f852cf
@ -139,8 +139,6 @@ PASSWORD_HASHERS = [
|
||||
|
||||
ROOT_URLCONF = 'plinth.urls'
|
||||
|
||||
SECURE_BROWSER_XSS_FILTER = True
|
||||
|
||||
SECURE_CONTENT_TYPE_NOSNIFF = True
|
||||
|
||||
# Overridden based configuration key secure_proxy_ssl_header
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user