mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
9 lines
402 B
Python
9 lines
402 B
Python
|
|
def test_owasp_useful_headers_set(notifications_admin):
|
|
with notifications_admin.test_request_context():
|
|
response = notifications_admin.test_client().get('/')
|
|
assert response.status_code == 200
|
|
assert response.headers['X-Frame-Options'] == 'deny'
|
|
assert response.headers['X-Content-Type-Options'] == 'nosniff'
|
|
assert response.headers['X-XSS-Protection'] == '1; mode=block'
|