Missing security headers on a vibe-coded site
Quick answer: Many AI-built sites ship without basic HTTP security headers like Content-Security-Policy, X-Frame-Options or frame-ancestors, and Strict-Transport-Security. Check your own site and add them in your host's config.
Last updated November 12, 2026
Steps
- Open your own site, then DevTools → Network → the main document → Response Headers.
- Look for Strict-Transport-Security, Content-Security-Policy (with frame-ancestors), X-Content-Type-Options: nosniff and Referrer-Policy.
- Add missing headers in your framework or host config (for example next.config headers() or vercel.json).
- Start CSP in report-only mode, fix what breaks, then enforce it.
- Re-check after every major deploy.
Sources
OWASP HTTP Headers Cheat Sheet — https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html
MDN: Content-Security-Policy — https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
Related patterns
Found a problem you'd rather not fix yourself?
Tell us what's wrong. A StorenTech engineer reviews your app and replies with a fixed quote, so you know the cost before any work starts.
Get it fixed by StorenTechVibe Security Weekly
One email a week with new failure patterns and how to fix them.
By joining you agree we may email you this newsletter. See our privacy policy. Free. Unsubscribe anytime. We'll never sell your email.