← Blog · 22 October 2026

Is your Lovable or Bolt app missing security headers? How to check and fix it

Check it in one minute: paste your app's address into the free Vibe-App Watchdog scan. We look at your app from the outside, like any visitor, and list which of the five common security headers are missing, in plain words.

What are security headers?

When a browser loads your app, your host sends a few lines of extra information along with the page. These are called response headers. Some of them are safety rules for the browser, like "don't let other sites put this page in a frame" or "only load scripts from these places".

They are not part of your React code. They come from whatever serves your files: Lovable's hosting, Bolt's hosting, Netlify, Vercel or Cloudflare.¹ That is why asking the AI to "make the app secure" often does not add them.

The five headers worth checking

OWASP, a well-known web security group, keeps a list of recommended headers.² These five are the ones our scan checks:

How to check your app by hand

  1. Open your live app in Chrome or Firefox.
  2. Press F12, open the Network tab and reload the page.
  3. Click the first row (your page itself) and look at Response Headers.
  4. Look for the five names above. Anything not in the list is missing.

If you are comfortable with a terminal, curl -I https://your-app.com shows the same list.

Check the address your users actually visit. If you use a custom domain, check that, not only the lovable.app or bolt.host address.

How to add the missing headers

Where the fix goes depends on where your app is hosted.

Netlify (including Bolt apps published to Netlify). Add a plain text file called _headers to the folder that gets published (for a Vite app, usually public/). Netlify reads it and adds the headers to every page.⁹

Example _headers file (the first line means "every page"; the header lines below it start with two spaces):

Careful with HSTS: only keep includeSubDomains if every subdomain of your site works on HTTPS. If one does not, browsers will refuse to load it. If you are not sure, leave that part out.

Vercel. Add a headers section to vercel.json in the root of your project.¹⁰

Lovable's own hosting. Lovable's publishing docs cover the address, HTTPS and who can see your app, but do not describe a setting for your own response headers.¹¹ You have three options:

Bolt's own hosting (bolt.host). Bolt's hosting docs do not describe a header setting either.¹³ Publishing a project to Netlify from Bolt (Netlify notes you choose this before the first publish)¹⁵, or putting Cloudflare in front of your custom domain, gives you the same options as above.

Start CSP in "report only" mode

A strict CSP can break your app if it blocks something you need, like your Supabase project, fonts or a payment script. Start with the Content-Security-Policy-Report-Only header. The browser then only reports what it would have blocked, without blocking it.¹⁴ When the reports are clean, switch to the real header.

A prompt you can give your AI tool:

"Add security headers for my host: X-Frame-Options DENY, X-Content-Type-Options nosniff, Referrer-Policy strict-origin-when-cross-origin, HSTS, and a Content-Security-Policy in report-only mode that allows my Supabase project and the other domains this app really uses. Tell me which file you changed."

Then check the headers again in the Network tab after you publish.

What headers do not fix

Headers make the browser safer. They do not protect your data. If your Supabase tables have Row Level Security off, or a secret key sits in your JavaScript, headers will not help. See How to check Supabase Row Level Security and Is a secret API key hiding in your app's frontend?.

What our scan can and cannot see

The free scan is passive. It checks the five headers above, common files that should not be public (like /.env or /.git/config), and patterns that look like secret keys in your public JavaScript. It cannot see your database rules or your server code. A good score means we did not find the common problems we check for. It does not mean your app is fully safe.

👉 Run the free scan on vibeappwatchdog.com

--- Sources