← All Results
Domain History

whitehouse.gov

Grade B · 74/100 · 5/7 security headers present

Security Score

B
74/ 100

Security Headers

5/ 7

CSP Violations

NoViolations

Issues Found

9Issues

Recommendations

7Available

Security

74 / 100

Good security foundation but some CSP hardening recommended.

Compliance

60 / 100

Several compliance gaps found in CSP implementation.

Best Practices

40 / 100

Few best practices adopted — significant room for improvement.

CSP Analysis

Content Security PolicyLOW
upgrade-insecure-requests; frame-ancestors 'none'; object-src 'self'; base-uri 'self'
Directive Analysis
upgrade-insecure-requestsLOW
frame-ancestorsLOW
none
object-srcLOW
self
base-uriLOW
self
Missing Directives
⚠CRITICALMissing CRITICAL directive default-src (Base fallback directive)
⚠CRITICALMissing CRITICAL directive script-src (JavaScript source control)
⚠MEDIUMMissing MEDIUM directive form-action (Form submission control - prevents form hijacking)
⚠MEDIUMMissing MEDIUM directive connect-src (API/XHR control - prevents data exfiltration)
⚠MEDIUMMissing MEDIUM directive style-src (Stylesheet source control)
⚠MEDIUMMissing MEDIUM directive img-src (Image source control)
⚠MEDIUMMissing MEDIUM directive font-src (Font source control)

Security Headers

✗Cross-Origin-Opener-PolicyMissing

Isolates the browsing context to prevent Spectre-type side-channel attacks and cross-origin window manipulation.

How to add it:

nginx
add_header Cross-Origin-Opener-Policy "same-origin" always;
apache
Header always set Cross-Origin-Opener-Policy "same-origin"
cloudflare
Rules > Transform Rules > HTTP Response Header Modification > Set Cross-Origin-Opener-Policy to "same-origin"
✗Permissions-PolicyMissing

Restricts which browser features (camera, microphone, geolocation) the page can use, limiting attack surface.

How to add it:

nginx
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
apache
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"
cloudflare
Rules > Transform Rules > HTTP Response Header Modification > Set Permissions-Policy value
✓Referrer-PolicyPresent

strict-origin-when-cross-origin

Controls how much referrer information is sent with requests, preventing data leaks to third parties.

✓Strict-Transport-SecurityPresent

max-age=31536000;includeSubdomains;preload

Forces browsers to use HTTPS for all future requests, preventing man-in-the-middle attacks and SSL stripping.

✓X-Content-Type-OptionsPresent

nosniff

Prevents browsers from MIME-sniffing responses away from the declared Content-Type, blocking drive-by downloads.

✓X-Frame-OptionsPresent

DENY

Prevents the page from being embedded in iframes, protecting against clickjacking attacks.

✓X-XSS-ProtectionPresent

0

Legacy XSS filter for older browsers. Modern browsers use CSP instead. Set to "0" to avoid false positives.

2 recommended security headers are missing on whitehouse.gov.

Issues Found

  • •Missing CRITICAL directive default-src (Base fallback directive)critical
  • •Missing CRITICAL directive script-src (JavaScript source control)critical
  • •Missing MEDIUM directive connect-src (API/XHR control - prevents data exfiltration)medium
  • •Missing MEDIUM directive font-src (Font source control)medium
  • •Missing MEDIUM directive form-action (Form submission control - prevents form hijacking)medium
  • •Missing MEDIUM directive img-src (Image source control)medium
  • •Missing MEDIUM directive style-src (Stylesheet source control)medium
  • •Missing security header: Cross-Origin-Opener-Policymedium
  • •Missing security header: Permissions-Policymedium

Recommendations

  • →Add connect-src directive with appropriate restrictions
  • →Add default-src directive with appropriate restrictions
  • →Add font-src directive with appropriate restrictions
  • →Add form-action directive with appropriate restrictions
  • →Add img-src directive with appropriate restrictions
  • →Add script-src directive with appropriate restrictions
  • →Add style-src directive with appropriate restrictions

Beyond headers: infrastructure exposure

via OSN, our sister project

Security headers protect the browser. OSN maps what's exposed underneath — servers, open ports, known CVEs, DNS and WHOIS.

See what the internet sees about whitehouse.gov

whitehouse.gov

2 scans since 11/4/2026

B

Latest: 74/100

Total Scans

2

Latest Score

74/100

First Scan

11/4/2026

Last Scan

11/4/2026

Security

74 / 100

Good security foundation but some CSP hardening recommended.

Compliance

60 / 100

Several compliance gaps found in CSP implementation.

Best Practices

40 / 100

Few best practices adopted — significant room for improvement.

Score Trend

Security score progression over 2 scans

Scan History

DateScoreCSPHeadersIssuesAction
Nov 4, 2026
B (74)
Yes
5/79View →
Nov 4, 2026
B (74)
Yes
5/79View →

Show off your security grade

Embed this badge on your site or README. It updates automatically after each scan and links back to this report.

HeaderTest security grade: B (74/100) for whitehouse.gov
HTML
<a href="https://headertest.com/results/whitehouse.gov" title="Security headers grade for whitehouse.gov — HeaderTest">
  <img src="https://headertest.com/api/badge/whitehouse.gov" alt="HeaderTest security grade: B (74/100) for whitehouse.gov" />
</a>
Markdown
[![HeaderTest security grade: B (74/100) for whitehouse.gov](https://headertest.com/api/badge/whitehouse.gov)](https://headertest.com/results/whitehouse.gov)