Skip to content
FixSecurityHeadersScan a site

Only the domain and grade are shown. Uncheck to remove it.

www.netlify.com

Score 30/100 · Stack Netlify · HTTP 200

Final URL: https://www.netlify.com/ · Scanned Fri, 27 Nov 2026 07:55:32 GMT

PCI DSS 4.0 6.4.3 & 11.6.1NIST 800-171 / CMMC L2OWASP ASVS V14.4SOC 2 CC6

Email me this report

We'll send the grade and a link to this report. One email, no newsletter.

Header results

Your fixes

Detected Netlify from x-nf-request-id.

Copy all: Netlify

Paste into _headers (in publish directory). Redeploy and check the deploy summary for "Headers rules processed".

_headers (in publish directory)
/*
  Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests
  X-Content-Type-Options: nosniff
  X-Frame-Options: DENY
  Referrer-Policy: strict-origin-when-cross-origin
  Cross-Origin-Opener-Policy: same-origin
  Cross-Origin-Resource-Policy: same-origin
  • The _headers file has to end up in your publish directory (often public/). If it's in the repo root and not copied, nothing happens.
  • Indent each header line under its path pattern.

Content-Security-Policy

What it does
CSP lists where your page is allowed to load scripts, styles, images, frames and connections from. Anything not on the list gets blocked. It's the best header-level defence against cross-site scripting you have.
Risk if missing
With no CSP, any script that gets onto the page (an XSS bug, a compromised analytics tag, a Magecart skimmer) runs with full access to your users' sessions and whatever they type into your forms.

Recommended value: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests

Content-Security-Policy · Netlify
/*
  Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests

Gotchas

  • Ship it as Content-Security-Policy-Report-Only first and read the violation reports for a week or two before you enforce.
  • 'unsafe-inline' or 'unsafe-eval' in script-src throws away most of the XSS protection. Use nonces or hashes instead.
  • Analytics, chat widgets and payment iframes each need their hosts added. Expect to find a few you forgot about.
  • Send one CSP header, not two. Multiple policies are intersected, so the result is usually stricter than either one and things break in confusing ways.
Full guide: Content-Security-Policy on Netlify

X-Content-Type-Options

What it does
With nosniff set, the browser trusts the Content-Type you send instead of guessing from the file contents. An uploaded .txt file stays a text file and can't be run as a script.
Risk if missing
MIME sniffing can turn user uploads or JSON responses into something the browser executes as script or applies as a stylesheet.

Recommended value: nosniff

X-Content-Type-Options · Netlify
/*
  X-Content-Type-Options: nosniff

Gotchas

  • If your server sends wrong Content-Type values (JavaScript served as text/plain is the classic), those files will stop loading once nosniff is on. Fix the types, don't drop the header.
Full guide: X-Content-Type-Options on Netlify

X-Frame-Options

What it does
X-Frame-Options tells browsers whether other sites may load your pages in an iframe. The modern replacement is the CSP frame-ancestors directive, but plenty of scanners and auditors still look for X-Frame-Options.
Risk if missing
An attacker can load your page in an invisible iframe over their own and trick users into clicking real buttons on it. Changing an email address or confirming a payment are the usual targets.

Recommended value: DENY

X-Frame-Options · Netlify
/*
  X-Frame-Options: DENY

Gotchas

  • Use SAMEORIGIN if your own site frames its pages.
  • ALLOW-FROM is obsolete and modern browsers ignore it. Use CSP frame-ancestors if you need an allow-list.
  • When CSP frame-ancestors is present, modern browsers ignore X-Frame-Options. Make sure the two agree anyway.
Full guide: X-Frame-Options on Netlify

Referrer-Policy

What it does
Referrer-Policy decides what URL information the browser sends in the Referer header when users click a link or your page loads something from another site.
Risk if missing
Full URLs can leak to third parties, including password reset tokens, search terms and internal paths you'd rather nobody saw.

Recommended value: strict-origin-when-cross-origin

Referrer-Policy · Netlify
/*
  Referrer-Policy: strict-origin-when-cross-origin

Gotchas

  • no-referrer is stricter, but it can wreck analytics attribution and break some payment and SSO flows that check the referrer.
Full guide: Referrer-Policy on Netlify

Cross-Origin-Opener-Policy

What it does
COOP puts your page in its own browsing context group, so a window opened from another origin can't get a reference to it (and vice versa).
Risk if missing
Cross-window attacks like XS-Leaks and tabnabbing, plus Spectre-style side channels.

Recommended value: same-origin

Cross-Origin-Opener-Policy · Netlify
/*
  Cross-Origin-Opener-Policy: same-origin

Gotchas

  • OAuth and payment pop-ups that report back through window.opener will break under same-origin. Use same-origin-allow-popups for those pages.
Full guide: Cross-Origin-Opener-Policy on Netlify

Cross-Origin-Resource-Policy

What it does
CORP tells browsers which origins are allowed to embed your images, scripts and other files.
Risk if missing
Other sites can embed your resources and use side channels to infer data from them.

Recommended value: same-origin

Cross-Origin-Resource-Policy · Netlify
/*
  Cross-Origin-Resource-Policy: same-origin

Gotchas

  • Assets that other sites are meant to embed (a public CDN, an embeddable widget) need cross-origin instead.
Full guide: Cross-Origin-Resource-Policy on Netlify

Raw response headers

curl -I https://www.netlify.com/
accept-ranges: bytes
age: 20728
cache-control: public,max-age=0,must-revalidate
cache-status: "Netlify Edge"; hit; ttl=31515272
content-length: 197757
content-type: text/html; charset=UTF-8
date: Fri, 27 Nov 2026 07:55:31 GMT
etag: "bf0fdcaadd9c2990288e80161db35cff-ssl"
link: </.well-known/api-catalog>; rel="api-catalog"; type="application/linkset+json", </.well-known/ard.json>; rel="ard"; type="application/ai-catalog+json"
permissions-policy: browsing-topics=()
server: Netlify
server-timing: cr;desc="hit-fresh", ds;dur=2, dc;desc="aws-iad", cg;desc="global-production", cl;dur=197757, dist;dur=10, tls;desc="new";dur=4
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: Accept-Encoding
x-nf-request-id: 01M8E0171A7P0TP5F0287EVPSB
connection: close
set-cookie: nf_hp_visitor_id=8fafb205-6664-4b36-8bae-a891721a3322; Secure; Max-Age=31536000; SameSite=Lax; Path=/
set-cookie: nf_hp_prompt_hero=none; Secure; Max-Age=600; SameSite=Lax; Path=/
set-cookie: nf_hp_one_tap=one_tap; Secure; Max-Age=600; SameSite=Lax; Path=/