Put nosniff, X-Frame-Options: DENY and Referrer-Policy: same-origin on every HTTP answer through the boilerplate's Hardening middleware, outermost and leaving the socket alone, name the API tokens in the Account page's lede, and reach the open test app as 127.0.0.1, since auth now answers 421 to any other Host

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-10-27 11:51:21 +01:00
1 parent 244e57ac29
commit 14793f4707
4 files changed
+144 -6

No files matched your search

+3 -1
View File
@@ -41,7 +41,9 @@ def store(app: FastAPI) -> Store:
@pytest.fixture
def client(app: FastAPI) -> Iterator[TestClient]:
with TestClient(app) as c:
"""Reached as 127.0.0.1, the name a browser uses: an app open on loopback
answers 421 to any other `Host`, TestClient's `testserver` included."""
with TestClient(app, base_url="http://127.0.0.1") as c:
yield c