You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python helper: e.g. SecurityHeadersConfig → dict[str, str] merged into responses, or middleware that adds headers to all responses (careful with caching / CORS interaction).
Document HSTS only over HTTPS and staging pitfalls.
Acceptance criteria
Pytest: response includes expected headers when helper is applied.
Short docs/security-headers.md or section in handlers.md.
Research
MDN / OWASP secure headers; duplicate vs override policy with user Response headers.
Context
Strict-Transport-Security,X-Content-Type-Options,X-Frame-Options/frame-ancestors, optionalContent-Security-Policy,Referrer-Policy,Permissions-Policy.Response; a preset reduces misconfiguration.Direction
SecurityHeadersConfig→dict[str, str]merged into responses, or middleware that adds headers to all responses (careful with caching / CORS interaction).Acceptance criteria
docs/security-headers.mdor section inhandlers.md.Research
Responseheaders.