We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ee2b6 commit c9c376dCopy full SHA for c9c376d
1 file changed
tests/test_csp_header.py
@@ -70,6 +70,15 @@ def test_html_page_has_content_security_policy_header(client) -> None:
70
_assert_expected_csp_directives(csp, nonce)
71
72
73
+def test_config_page_has_content_security_policy_header(client) -> None:
74
+ response = client.get("/config")
75
+ assert response.status_code == 200
76
+ csp = response.headers.get("Content-Security-Policy")
77
+ assert csp
78
+ nonce = _extract_csp_nonce(csp)
79
+ _assert_expected_csp_directives(csp, nonce)
80
+
81
82
def test_html_page_nonce_matches_inline_script(client) -> None:
83
first = client.get("/search")
84
second = client.get("/search")
0 commit comments