Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contributors/emails/seraphine@Seraphines-Mac-Studio.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Bartok9
# Seraphine Mac Studio local email on Bartok9 PR tips (per-PR attribution; Teknium/Daniel 2026-08-01)
2 changes: 2 additions & 0 deletions gateway/platforms/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ def __len__(self) -> int:
# ---------------------------------------------------------------------------

_CORS_HEADERS = {
"Access-Control-Expose-Headers": "Location, X-Request-Id, Idempotency-Key",
"Access-Control-Allow-Methods": "GET, POST, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "Authorization, Content-Type, Idempotency-Key",
}
Expand Down Expand Up @@ -1025,6 +1026,7 @@ async def security_headers_middleware(request, handler):
response = await handler(request)
for k, v in _SECURITY_HEADERS.items():
response.headers.setdefault(k, v)
response.headers.setdefault("Cache-Control", "no-store")
return response
else:
security_headers_middleware = None # type: ignore[assignment]
Expand Down
Loading