Browser security headers: give the browser useful boundaries

Browser security headers are instructions a website sends with its response. They can constrain content loading, reduce unwanted framing and limit referrer information. These controls add useful browser boundaries when their settings match the application and its legitimate integrations.

House rules for a meeting room

A venue can specify which equipment may be connected, where the room may be shown on a screen and what visitor details may be shared. Browser headers publish comparable rules for a web page. A rule's presence is only the start; its wording determines how much it restricts.

Website response headers
Browser interprets each policy
Resource, framing and referrer boundaries
The scanner recognises selected header forms. Policy effectiveness requires application-aware testing.

How it works

Content Security Policy (CSP) controls permitted resource sources and other browser actions. An enforced policy has different behaviour from a report-only policy used to observe potential violations.

X-Content-Type-Options: nosniff instructs the browser to respect declared content types. Framing controls constrain which sites may embed the page, usually through CSP frame-ancestors or X-Frame-Options.

Referrer-Policy controls how much referring URL information accompanies requests. Browser defaults and page-level settings can also affect behaviour, so missing a header does not establish every browser's exact exposure.

What our check observes

On the final authenticated HTTPS response, we recognise four controls: enforced CSP with default-src or script-src, exact nosniff, recognised framing protection and a recognised restrictive Referrer-Policy value.

The result reports how many of these four controls were recognised. Report-only CSP does not satisfy the enforced CSP item. Warning credit is proportional to the observed count.

Where the observation stops

We inspect header forms, not effective policy strength. A broad CSP or permissive frame-ancestors value may satisfy the presence check while providing limited protection.

The probe does not test script injection, clickjacking, application code, every route or authenticated pages. A pass does not establish that a site has no vulnerabilities. Custom valid configurations may need human review beyond these recognised forms.

How to read your result

pass

All four baseline header controls were recognised. Their suitability and effectiveness still need application-specific review.

warning

One to three controls were recognised. Evidence identifies each missing or unrecognised item, with proportional baseline credit.

fail

None of the four expected controls was recognised on the observed response. Confirm the response and intended configuration.

Not determined

The final trusted HTTPS response could not be assessed. Header presence remains unconfirmed.

A safe next step

1

Application security and development owners

Inventory required scripts, embeds and integrations. Design a CSP for the application and use report-only observation where appropriate before enforcement.

Verify: Exercise important user journeys, review violation reports and confirm the enforced policy still permits intended functions.

2

Web platform owner

Apply appropriate content types, nosniff, framing and referrer rules at the correct response layer. Coordinate with legitimate embedding partners.

Verify: Check representative routes, error pages and browser behaviour. Review the policy itself alongside the public baseline result.

Go to the source

These primary references explain the standards and behavior behind this guide. Product observations remain limited to the scope above.

  1. MDN: Content Security Policy and report-only rollout
  2. MDN: X-Content-Type-Options
  3. MDN: X-Frame-Options
  4. MDN: Referrer-Policy

Understand what applies to your domain.

Start with the public assessment or discuss a configuration change with the Logic V team.

Check a domainTalk through a finding