forked from retoor/devplacepy
fix: correct "bugs" to "issues" in routing table and README references across multiple documentation files
This commit is contained in:
@@ -340,3 +340,23 @@ def test_x_robots_tag_header(app_server):
|
||||
def test_x_content_type_options_header(app_server):
|
||||
r = requests.get(f"{BASE_URL}/feed", allow_redirects=True)
|
||||
assert r.headers.get("X-Content-Type-Options") == "nosniff"
|
||||
|
||||
|
||||
def test_strict_transport_security_header(app_server):
|
||||
r = requests.get(f"{BASE_URL}/feed", allow_redirects=True)
|
||||
assert "includeSubDomains" in r.headers.get("Strict-Transport-Security", "")
|
||||
|
||||
|
||||
def test_referrer_policy_header(app_server):
|
||||
r = requests.get(f"{BASE_URL}/feed", allow_redirects=True)
|
||||
assert r.headers.get("Referrer-Policy") == "strict-origin-when-cross-origin"
|
||||
|
||||
|
||||
def test_x_frame_options_header(app_server):
|
||||
r = requests.get(f"{BASE_URL}/feed", allow_redirects=True)
|
||||
assert r.headers.get("X-Frame-Options") == "DENY"
|
||||
|
||||
|
||||
def test_x_frame_options_excluded_for_ingress_proxy(app_server):
|
||||
r = requests.get(f"{BASE_URL}/p/nonexistent-instance", allow_redirects=False)
|
||||
assert "X-Frame-Options" not in r.headers
|
||||
|
||||
Reference in New Issue
Block a user