mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 05:10:45 -04:00
Remove unused HTTP response header
See https://github.com/wntrblm/flask-talisman/issues/27 for more details Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -11,7 +11,6 @@ def test_owasp_useful_headers_set(
|
||||
|
||||
assert response.headers['X-Frame-Options'] == 'deny'
|
||||
assert response.headers['X-Content-Type-Options'] == 'nosniff'
|
||||
assert response.headers['X-XSS-Protection'] == '1; mode=block'
|
||||
csp = response.headers['Content-Security-Policy']
|
||||
assert search(r"default-src 'self' static\.example\.com;", csp)
|
||||
assert search(r"frame-ancestors 'none';", csp)
|
||||
|
||||
Reference in New Issue
Block a user