---
title: "HTTP Security Headers Check: CSP, HSTS & More · camada"
description: "Check the HTTP security headers of any URL, or paste them. Audit CSP, HSTS, X-Frame-Options, nosniff and the other OWASP headers and see which are weak."
url: https://www.camada.app/tools/security-headers
last_updated: 2026-11-19
---

# Check HTTP security headers, CSP and HSTS

Scan any public URL or paste `curl -I` response headers to flag XSS and framing gaps. Check OWASP headers, detect `<meta>` CSP tags, compute SHA-256 script hashes, and export configs.

- [Scan URL or paste headers](https://www.camada.app/tools/security-headers#analyzer)
- [Compute SHA-256 CSP hash](https://www.camada.app/tools/security-headers#sha256-bench)
- [CSP & OWASP reference](https://www.camada.app/tools/security-headers#reference)
- [All developer tools](https://www.camada.app/tools)

## Scan a live URL or paste response headers

Enter any public URL to fetch its live headers and `<meta>` CSP tag. Or paste `curl -sI` output to keep localhost checks inside this tab.

## Keep default-src 'self' clean while stopping attackers

Response headers stop browser-side XSS, clickjacking, and MIME sniffing. Third-party bot widgets often force teams to add outside domains to `script-src` and `frame-src`. camada serves its `/_cam/b.js` beacon and 16-bit SHA-256 challenge page from your own origin. Your `default-src 'self'` policy stays clean. Watchkeeper then catches credential stuffing and scrapers in your backend.

### Grab your live headers from a terminal

Run `curl -sSI` against localhost, staging, or production and paste the output above.

terminal · curl headers

```sh
curl -sSI https://your-app.example.com
```

http · same-origin CSP

```http
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests
```

1

### Zero third-party CAPTCHA hosts in your CSP

External puzzle widgets force outside domains into script-src and frame-src. camada serves /_cam/b.js and its beacon route on your own domain. Your default-src 'self' policy needs zero third-party hosts.

[See how first-party bot detection works](https://www.camada.app/bot-detection)

2

### Self-contained 16-bit SHA-256 challenge page

On a challenge verdict, your SDK serves a small first-party HTML page. It sets Cache-Control: no-store and loads zero external scripts or fonts. Passing sets an HttpOnly cookie on your own origin.

[Read the SHA-256 challenge specification](https://www.camada.app/docs/challenge)

3

### Headers guard the browser; Watchkeeper guards your routes

Strict headers stop XSS and framing in real browsers. Credential stuffers and scrapers ignore your CSP and hit your routes. camada links browser checks with track() outcomes in memory, and fails open.

[Review camada security and fail-open design](https://www.camada.app/security)

- [CSP generator](https://www.camada.app/tools/csp-generator)
- [Website security & cookie scanner](https://www.camada.app/tools/website-security-check)
- [Live CORS & preflight checker](https://www.camada.app/tools/cors-checker)
- [Live bot signal test](https://www.camada.app/tools/bot-test)
- [User-Agent & Client Hints checker](https://www.camada.app/tools/user-agent)
- [robots.txt & llms.txt checker](https://www.camada.app/tools/robots-txt)
- [All 14 frameworks](https://www.camada.app/frameworks)
- [Compare with WAFs and CAPTCHAs](https://www.camada.app/compare)

SDK guides: [Cloudflare, no code](https://www.camada.app/docs/cloudflare) · [Hono on Workers](https://www.camada.app/docs/hono) · [Python](https://www.camada.app/docs/python) · [Go SDK](https://www.camada.app/docs/go) · [PHP](https://www.camada.app/docs/php) · [Ruby](https://www.camada.app/docs/ruby) · [Java](https://www.camada.app/docs/java) · [.NET](https://www.camada.app/docs/dotnet)

## CSP directive and OWASP header reference

Three directives in Content Security Policy never inherit from `default-src`: `base-uri`, `frame-ancestors`, and `form-action`. Always declare each one on HTML responses.

### 1. Content-Security-Policy directives

Baseline values and common XSS or framing weaknesses across core CSP directives.

| Directive | Recommended baseline | Risk when missing or permissive |
| --- | --- | --- |
| default-src | `'self' (or 'none' on JSON APIs)` | Missing or * lets unconfigured resource types load from any host. |
| script-src | `'self' plus per-request nonces or 'sha256-...' hashes` | Adding 'unsafe-inline', 'unsafe-eval', *, or data: lets XSS payloads run. |
| style-src | `'self' (or hashed inline styles)` | Wildcard * or injected CSS can exfiltrate page attributes and tokens. |
| object-src | `'none'` | Leaving object-src open allows <object> and <embed> execution gadgets. |
| base-uri | `'self' or 'none'` | Does not inherit from default-src. An injected <base> tag hijacks relative scripts. |
| frame-ancestors | `'none' or 'self'` | Does not inherit from default-src. Missing rules allow iframe clickjacking. |
| connect-src | `'self' plus explicit API origins` | Wildcard * lets injected scripts send stolen data to outside hosts. |
| form-action | `'self'` | Does not inherit from default-src. Injected forms can post logins elsewhere. |
| upgrade-insecure-requests | `upgrade-insecure-requests (valueless token)` | Mixed http:// assets can downgrade or break on HTTPS pages. |

### 2. OWASP HTTP security headers

Response headers that harden TLS transport, MIME handling, framing, referrers, and browser APIs.

| Header | Recommended value | Attack class mitigated |
| --- | --- | --- |
| Strict-Transport-Security | `max-age=63072000; includeSubDomains; preload` | Blocks SSL stripping and plain HTTP downgrade attacks. |
| Content-Security-Policy | `default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'` | Stops cross-site scripting (XSS), rogue frames, and data leaks. |
| X-Content-Type-Options | `nosniff` | Stops browsers from running text or image uploads as script. |
| X-Frame-Options | `DENY (or SAMEORIGIN alongside frame-ancestors)` | Gives legacy browsers a fallback defense against clickjacking. |
| Referrer-Policy | `strict-origin-when-cross-origin (or no-referrer)` | Keeps private URL paths and query tokens out of cross-site Referer headers. |
| Permissions-Policy | `camera=(), microphone=(), geolocation=()` | Blocks embedded or injected code from reading device sensors. |
| Cross-Origin-Opener-Policy | `same-origin` | Severs window.opener links against cross-window XS-Leak attacks. |

## Questions about CSP and HTTP headers

Building an app with logins, signups, or a checkout? Read our [security overview](https://www.camada.app/security) or check [plans and limits](https://www.camada.app/pricing).

**What does Content-Security-Policy protect against?**

Content-Security-Policy tells browsers which script, style, frame, and network origins may load. A strict policy blocks injected XSS scripts from running. It also blocks stolen data from leaving for an attacker host.

**Why does unsafe-inline weaken script-src?**

Adding 'unsafe-inline' lets browsers run any inline <script> tag or event attribute. One HTML injection bug then gives an attacker full page access. Use per-request nonces or 'sha256-...' hashes instead.

**Do I still need X-Frame-Options if I set CSP frame-ancestors?**

Modern browsers enforce CSP frame-ancestors 'none' or 'self'. They ignore X-Frame-Options when you set frame-ancestors. Many teams still send X-Frame-Options: DENY as a fallback for old clients.

**What does X-Content-Type-Options: nosniff do?**

Without nosniff, browsers may guess that an uploaded file holds HTML or script. That file can then run inside your origin. X-Content-Type-Options: nosniff makes browsers obey your exact Content-Type header.

**Do live URL scans or localhost pastes store my headers or cookies?**

Paste mode runs in your tab, so localhost headers stay on your machine. Live URL scans check public ports 80 and 443 from our Worker. Our Worker blocks private IPs, strips cookie values, and sends Cache-Control: no-store.

## Use it from an AI agent

This page is also Markdown at [/tools/security-headers.md](https://www.camada.app/tools/security-headers.md). Agents can also run the check itself, without the form.

- `audit_csp` on the MCP server at https://www.camada.app/mcp, and in this tab through WebMCP

  Takes `policy, json_api?`. Audit a Content-Security-Policy: a header value, a full "Content-Security-Policy: ..." line or a <meta> tag. Returns a row per key directive (ok, warn or info) with the reason, the warnings with fixes, any duplicated directives, and the policy as a header, a Report-Only header and a meta tag. Same rules as https://www.camada.app/tools/csp-generator and /tools/security-headers.

The MCP server needs no key. Every agent tool on this site is listed in the [server card](https://www.camada.app/.well-known/mcp/server-card.json) and on [the tools page](https://www.camada.app/tools#agents).

## Related tools

- [CSP generator](https://www.camada.app/tools/csp-generator)

  Answer a few questions and get a Content-Security-Policy header, a Report-Only version, and a meta tag. Strict by default.
- [Website security check](https://www.camada.app/tools/website-security-check)

  Enter a URL to trace HTTPS redirects, check CSP and OWASP headers, and audit cookie flags. Also checks robots.txt, llms.txt, and security.txt.
- [CORS checker](https://www.camada.app/tools/cors-checker)

  Run a live OPTIONS preflight with a test Origin, or paste curl headers. Spot reflected origin leaks, wildcard credential bugs, and missing Vary headers.

[All free tools](https://www.camada.app/tools)

## Protect your routes without bloating your CSP.

Install the SDK on the Free plan to score 100,000 events a month with no card. Turn on blocks and SHA-256 challenges on Starter ($59/month) or Growth ($249/month).

[Get started free](https://my.camada.app/) [In-app bot detection](https://www.camada.app/bot-detection) [SHA-256 challenge docs](https://www.camada.app/docs/challenge) [See pricing](https://www.camada.app/pricing)

Free needs no card. A 14-day trial of Starter or Growth needs a card. Nothing is charged today. Cancel before the trial ends (the date is shown in the app) and you pay nothing. Otherwise the plan's monthly price starts on day 15.

## Sitemap

[Every page on this site](https://www.camada.app/sitemap.md)
