Security Headers Check

Check whether a website sends the HTTP headers that protect its visitors, with an A–F grade and how to fix each one.

A

Grade

Excellent

https://github.com/ (200)

Results

  • Warning: No Permissions-Policy. It lets you turn off browser features the site does not use (camera, microphone, geolocation…), for example "Permissions-Policy: camera=(), microphone=(), geolocation=()".
  • Warning: Cookies without some protection flags: _octo (HttpOnly). Add Secure (HTTPS only), HttpOnly (not readable by JavaScript, for session cookies) and SameSite=Lax.
  • Ok: HSTS is enabled for 365 days: browsers will only use HTTPS.
  • Ok: Content-Security-Policy restricts where scripts can load from.
  • Ok: The page cannot be framed by other sites (protection against clickjacking).
  • Ok: X-Content-Type-Options: nosniff stops browsers from guessing file types.
  • Ok: Referrer-Policy limits what is sent to other sites.

Security headers

Strict-Transport-Security max-age=31536000; includeSubdomains; preload
Content-Security-Policy default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net productionresultssa1.blob.core.windows.net productionresultssa2.blob.core.windows.net productionresultssa3.blob.core.windows.net productionresultssa4.blob.core.windows.net productionresultssa5.blob.core.windows.net productionresultssa6.blob.core.windows.net productionresultssa7.blob.core.windows.net productionresultssa8.blob.core.windows.net productionresultssa9.blob.core.windows.net productionresultssa10.blob.core.windows.net productionresultssa11.blob.core.windows.net productionresultssa12.blob.core.windows.net productionresultssa13.blob.core.windows.net productionresultssa14.blob.core.windows.net productionresultssa15.blob.core.windows.net productionresultssa16.blob.core.windows.net productionresultssa17.blob.core.windows.net productionresultssa18.blob.core.windows.net productionresultssa19.blob.core.windows.net productionresultssa30.blob.core.windows.net productionresultssa31.blob.core.windows.net productionresultssa32.blob.core.windows.net github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com wss://*.wps.githubcopilot.com wss://production-copilot-host.webpubsub.azure.com wss://production-copilot-host-centralus.webpubsub.azure.com wss://production-copilot-host-centralus-02.webpubsub.azure.com wss://production-copilot-host-westus.webpubsub.azure.com wss://production-copilot-host-westus3.webpubsub.azure.com wss://production-copilot-host-eastasia.webpubsub.azure.com wss://production-copilot-host-austriaeast.webpubsub.azure.com api.github.com/cmc_internal/api/ edge.fullstory.com rs.fullstory.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com www.youtube-nocookie.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com user-images.githubusercontent.com private-user-images.githubusercontent.com opengraph.githubassets.com repository-images.githubusercontent.com marketplace-screenshots.githubusercontent.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com explore-feed.github.com *.googleusercontent.com objects-origin.githubusercontent.com *.githubusercontent.com images.ctfassets.net/8aevphvgewt8/; manifest-src 'self'; media-src github.com user-images.githubusercontent.com secured-user-images.githubusercontent.com private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com assets.ctfassets.net/8aevphvgewt8/ videos.ctfassets.net/8aevphvgewt8/; script-src github.githubassets.com 'sha256-6nkh0w49y4npXaU0CPIq0z+XDtPnpaDFECgj6Y9vmx4='; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
X-Frame-Options deny
X-Content-Type-Options nosniff
Referrer-Policy origin-when-cross-origin, strict-origin-when-cross-origin
Permissions-Policy Missing
All response headers (21)
DateMon, 23 Nov 2026 00:48:21 GMT
Content-Typetext/html; charset=utf-8
VaryX-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, X-GitHub-Client-Version, Accept-Language, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With
content-languageen-US
ETagW/"d32576301d3f8936808b9311463459fd"
Cache-Controlmax-age=0, private, must-revalidate
Strict-Transport-Securitymax-age=31536000; includeSubdomains; preload
X-Frame-Optionsdeny
X-Content-Type-Optionsnosniff
X-XSS-Protection0
Referrer-Policyorigin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policydefault-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net productionresultssa1.blob.core.windows.net productionresultssa2.blob.core.windows.net productionresultssa3.blob.core.windows.net productionresultssa4.blob.core.windows.net productionresultssa5.blob.core.windows.net productionresultssa6.blob.core.windows.net productionresultssa7.blob.core.windows.net productionresultssa8.blob.core.windows.net productionresultssa9.blob.core.windows.net productionresultssa10.blob.core.windows.net productionresultssa11.blob.core.windows.net productionresultssa12.blob.core.windows.net productionresultssa13.blob.core.windows.net productionresultssa14.blob.core.windows.net productionresultssa15.blob.core.windows.net productionresultssa16.blob.core.windows.net productionresultssa17.blob.core.windows.net productionresultssa18.blob.core.windows.net productionresultssa19.blob.core.windows.net productionresultssa30.blob.core.windows.net productionresultssa31.blob.core.windows.net productionresultssa32.blob.core.windows.net github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com wss://*.wps.githubcopilot.com wss://production-copilot-host.webpubsub.azure.com wss://production-copilot-host-centralus.webpubsub.azure.com wss://production-copilot-host-centralus-02.webpubsub.azure.com wss://production-copilot-host-westus.webpubsub.azure.com wss://production-copilot-host-westus3.webpubsub.azure.com wss://production-copilot-host-eastasia.webpubsub.azure.com wss://production-copilot-host-austriaeast.webpubsub.azure.com api.github.com/cmc_internal/api/ edge.fullstory.com rs.fullstory.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com www.youtube-nocookie.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com user-images.githubusercontent.com private-user-images.githubusercontent.com opengraph.githubassets.com repository-images.githubusercontent.com marketplace-screenshots.githubusercontent.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com explore-feed.github.com *.googleusercontent.com objects-origin.githubusercontent.com *.githubusercontent.com images.ctfassets.net/8aevphvgewt8/; manifest-src 'self'; media-src github.com user-images.githubusercontent.com secured-user-images.githubusercontent.com private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com assets.ctfassets.net/8aevphvgewt8/ videos.ctfassets.net/8aevphvgewt8/; script-src github.githubassets.com 'sha256-6nkh0w49y4npXaU0CPIq0z+XDtPnpaDFECgj6Y9vmx4='; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
Servergithub.com
Accept-Rangesbytes
Set-Cookie_gh_sess=xhNOXmvgwdcXVCmFAov091iW%2FjOlqlWYR%2FG7n1xP0l4YoSJ1NBSdVWz9NaqD1%2BvsqUl7JdSU1weJejh2l752xR4FNIDbxrOsWXxnZ8%2FtIsiATVc88dzcVrYuk4Li7PunHYxt2Zb9oiNQTNwvuJJs%2FxWnY9JqgPJIyvpVXZQyiHvMzqrVY1yyHPfTSs2NdnNl6cxeI4aCmXHstW2UTXyMQAQQ4Gj97exytIXKBXQP6CInYbdqPlAcZXAxyXMjv%2FUi5XSl91RV3TC0Uu9qyz6uyQ%3D%3D--dFX9FTC3%2BDCKVkfL--MrkbnbziHoXRQqEWz2lT0Q%3D%3D; path=/; HttpOnly; secure; SameSite=Lax
Set-Cookie_octo=GH1.1.845560701.1795394906; expires=Tue, 23 Nov 2027 00:48:26 GMT; domain=.github.com; path=/; secure; SameSite=Lax
Set-Cookielogged_in=no; expires=Tue, 23 Nov 2027 00:48:26 GMT; domain=.github.com; path=/; HttpOnly; secure; SameSite=Lax
X-GitHub-Request-Id9234:174F:2F4BAD0:439E6EE:6B038D5A
x-github-edge-regionfra
connectionclose
Transfer-Encodingchunked

Checked on 2026-11-23 00:48 UTC. Results are cached for 5 minutes.

What does the security headers check do?

It loads a page the way a browser does, follows its redirects, and reviews the HTTP headers that switch on browser protections. Each header gets a verdict, the site gets an A–F grade, and every problem comes with the line to add.

The headers we check

HeaderProtects againstRecommended value
Strict-Transport-SecurityDowngrade to HTTP and interception on public Wi-Fi.max-age=31536000; includeSubDomains
Content-Security-PolicyCross-site scripting (XSS) and injected content.Depends on the site; start with default-src 'self' in report-only mode.
X-Frame-OptionsClickjacking (your page inside an invisible frame).SAMEORIGIN, or frame-ancestors 'self' in the CSP.
X-Content-Type-OptionsFiles run as scripts because the browser guessed their type.nosniff
Referrer-PolicyLeaking full URLs (tokens, searches) to other sites.strict-origin-when-cross-origin
Permissions-PolicyAbuse of camera, microphone, location… by embedded code.camera=(), microphone=(), geolocation=()

We also flag headers that reveal software versions (Server: Apache/2.4.58, X-Powered-By) and cookies set without Secure, HttpOnly or SameSite.

How to add them

# Nginx (inside the server block for HTTPS)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

# Apache (.htaccess, needs mod_headers)
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"

Behind Cloudflare you can also set them with a Transform Rule (Rules → Transform Rules → Modify Response Header), and HSTS directly in SSL/TLS → Edge Certificates.

Before you enable HSTS

Once a browser has seen HSTS it refuses plain HTTP for that domain until max-age runs out. Make sure the site and, with includeSubDomains, every subdomain work over HTTPS with a valid certificate first. Check it with the SSL Checker, and the redirects with the Redirect Checker.

Frequently asked questions

What are security headers?

HTTP response headers that tell browsers to enable protections: use only HTTPS (HSTS), load scripts only from trusted places (CSP), refuse to be framed by other sites (X-Frame-Options), not guess file types (nosniff) and limit what is shared with other sites (Referrer-Policy).

How is the grade calculated?

Each missing or weak header takes points off 100, by importance: no HTTPS 60, no HSTS 25, no CSP 20, no clickjacking protection 15, nosniff and Referrer-Policy 10 each, smaller issues 5. 90 or more is an A, 75 a B, 60 a C, 40 a D.

How do I add these headers?

In your web server (Nginx add_header, Apache Header set), in your application, or at your CDN (Cloudflare Transform Rules, Netlify and Vercel config files). Add them on HTTPS responses, and test with this tool afterwards.

Why is a Content-Security-Policy hard?

It must list every place your pages load scripts, styles, fonts and frames from, including analytics and ads. Start with Content-Security-Policy-Report-Only to see what would break, fix the list, then enforce it.

Is X-XSS-Protection still needed?

No. Modern browsers removed the XSS filter it controlled, and enabling it could even cause problems. Use a Content-Security-Policy instead and leave X-XSS-Protection out (or set it to 0).

Does a good grade mean the site is secure?

No. Headers are one layer: they limit the damage of some attacks in the browser. The site still needs up-to-date software, a valid certificate (check it with the SSL Checker) and secure code.

Related tools

Last updated: