PeekLok

Lovable: Missing security headers

Security headers are short instructions your site sends to browsers, such as “only load scripts from my site” and “don’t let other sites frame me.”

Free scan: check my app Just your web address. Results in seconds. No signup, no card.

Why it matters for your Lovable app

Lovable apps usually use Supabase for the database and login. Lovable has a built-in security scan, but it can’t sign in as two real users and compare what each one sees.

Without them, some attacks like clickjacking and script injection are easier. This is usually a lower risk than data leaks, but quick to fix.

How to check in five minutes

  1. Open your site, press F12, go to Network, click the first request and look at Response Headers.
  2. Look for Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options and a frame rule (X-Frame-Options or frame-ancestors).

What PeekLok’s scan checks

PeekLok’s scan checks your page for five headers: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options and Referrer-Policy.

Fix prompt to paste into the Lovable chat

Add these security headers to every response: Strict-Transport-Security with max-age=31536000; X-Content-Type-Options: nosniff; Referrer-Policy: strict-origin-when-cross-origin; a Content-Security-Policy that allows only my own domain plus the services I actually use; and frame-ancestors none. Tell me where you set them and test the site still loads. (This is a Lovable app using Supabase. Keep secrets in Supabase Edge Function secrets.)

After the AI makes changes, test again with two accounts. AI fixes can look right and still miss a table or route.

Sources

Related

Same issue in other builders:

All Lovable security guides · Missing security headers explained

Get a free scan

PeekLok checks your live app for secret keys in the page code, a Supabase service or anon key showing, Supabase tables anyone can read with the public key, and five browser security headers. If your app uses Supabase login, you can add two test logins and it checks whether one user can see the other’s data. Only scan apps you own. First scan free. Weekly re-checks will be $12 US a month once payments open.

Start my free scan