Expand description
Default security response headers for Actix Web services.
These headers are intentionally limited to generic browser hardening. HSTS is not set here because Aster services usually sit behind an HTTPS reverse proxy, and that proxy should own HTTPS termination policy.
Constants§
- REFERRER_
POLICY_ VALUE - Value used for the
Referrer-Policyresponse header. - X_
CONTENT_ TYPE_ OPTIONS_ VALUE - Value used for the
X-Content-Type-Optionsresponse header. - X_
FRAME_ OPTIONS_ VALUE - Value used for the
X-Frame-Optionsresponse header.
Functions§
- default_
headers - Builds the default security headers middleware.