get_security_headers
get_security_headers
Get security headers to add to HTTP responses.
Parameters
is_https
Whether the connection is over HTTPS. When True and use_hsts is enabled,
the Strict-Transport-Security header is included.
Returns
dict[str, str] — Dictionary of security headers including X-Content-Type-Options,
X-Frame-Options, X-XSS-Protection, Referrer-Policy, and optionally
Strict-Transport-Security.