Security headers

Other security headers

Set X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and COOP/CORP to close the small gaps browsers leave open by default.

Why it matters

These headers stop browsers from guessing file types, leaking the full URL to other sites, and giving pages access to camera or location they do not need.

Individually they are small. Together they remove the easy paths attackers use after a first mistake.

How to fix it

  1. Send X-Content-Type-Options: nosniff

  2. Send Referrer-Policy: strict-origin-when-cross-origin

  3. Send Permissions-Policy for features you do not use

  4. Send Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Resource-Policy: same-origin

Prompt for an AI assistant

Copy the text below and paste it into an AI assistant.

You are the person improving this website. Check the item below and fix it if it applies to the site.

Item: Other security headers
Summary: Set X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and COOP/CORP to close the small gaps browsers leave open by default.
Steps:
1. Send X-Content-Type-Options: nosniff
2. Send Referrer-Policy: strict-origin-when-cross-origin
3. Send Permissions-Policy for features you do not use
4. Send Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Resource-Policy: same-origin
References:
- Secure Headers Project (OWASP) (https://owasp.org/www-project-secure-headers/)
- Referrer-Policy (MDN) (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)

Constraints:
- Keep the existing design and tone of voice.
- Show the file or section you changed and the suggested final wording.
- Do not decide ambiguous points alone; give options and a recommendation.
- Do not change anything outside the listed item.

Checked by

  • vuln

    Public exposure checks

Related checks

  • Content-Security-Policy (CSP)

    Send a Content-Security-Policy that limits where scripts, styles, and frames can come from, instead of allowing everything.

  • HTTPS / HSTS

    Serve the site over HTTPS and send Strict-Transport-Security so browsers refuse plain HTTP on later visits.

  • Clickjacking protection

    Stop other sites from embedding your pages in a frame, with frame-ancestors or X-Frame-Options.

References

Check your site now

Enter a URL and find what is missing before launch, for free.

Run audit