Skip to content

Infrastructure & CI

No security headers configured anywhere in the projectinfra.no-security-headers

Nothing in the project sets Content-Security-Policy, X-Frame-Options or HSTS — no `headers()` in next.config, no middleware, no vercel.json/_headers. Unless your host adds them, the app can be framed (clickjacking) and has no defence-in-depth against injected scripts.

  • In force Rule infra.no-security-headers
  • 3 clauses

At a glance

infra.no-security-headers
Severitylow
CertaintyNeeds review — a heuristic; confirm before changing code
Looks atyour source code
When it runsRuns on every scan

How to fix it

Add a `headers()` block to next.config (or your host's headers file) with at least X-Frame-Options/frame-ancestors, a Content-Security-Policy, Referrer-Policy and HSTS.

Check your own app

Run npx scanlyfix scan in your project. Every finding gets an id; after fixing, npx scanlyfix verify <id> proves it is gone.

If it is a false positive in your project, silence that one line with // scanlyfix-ignore-next-line infra.no-security-headers -- <why>.

All rules

Your code stays
on your machine

Only findings are uploaded, and only to your own dashboard.