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
| Severity | low |
|---|---|
| Certainty | Needs review — a heuristic; confirm before changing code |
| Looks at | your source code |
| When it runs | Runs 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>.
Your code stays
on your machine
Only findings are uploaded, and only to your own dashboard.
ScanlyFix
Security, privacy pages, SEO and AI visibility checked in one scan, with fixes your AI editor can apply.
Home