Add 3 security headers to your vibe-coded app
Security headers tell browsers how to treat your site. They're easy to miss in AI-built apps. Start with these three:
X-Frame-Options: DENYstops other sites from framing your app (clickjacking).X-Content-Type-Options: nosniffstops browsers guessing file types.Referrer-Policy: strict-origin-when-cross-originkeeps full URLs out of other sites' logs.
Add them
- Netlify: add a
_headersfile to your publish folder (oftenpublic/) with/*and the three lines indented under it. - Vercel: add a
headersentry for/(.*)invercel.json.
Check
Open DevTools → Network, reload, click the first request and read Response Headers.
Run a free scan at sniffpup.com.
Want one 2-minute check like this every morning? Sign up below.
Named after Ember, my black Pomeranian. Built by a software engineer and vibe-coding hobbyist to help you ship safely.