Skip to content
TrustLite

Guide

Is my Lovable app secure?

The honest answer is that nobody can say yes from the outside. You can still find the mistakes Lovable apps make in public, and those mistakes are common because the builder optimizes for a working demo.

What ends up in the browser

Lovable writes a client-heavy app. Environment variables that start with a public prefix, and keys pasted into a component “just for now,” are compiled into JavaScript anyone can open. A Supabase service role key, a Stripe secret, or an OpenAI key in that bundle is already public. Rotate it. Do not wait for a score.

Supabase is the usual database

The anon key is supposed to be in the client. Row level security is what keeps that from being a full database login. New tables often ship with RLS off, or with a policy that allows every role to select. Read how the table probe works.

The preview URL is still your production

A `*.lovable.app` host is a real website. If `/.env` or `/.git` responds with 200, treat every credential in the project as copied. Headers are usually the defaults of the host: no content security policy, sometimes no HSTS. Those are smaller issues than a service role key, and they are still worth adding.

A check is a list, not a verdict

TrustLite will not tell you the app is secure. It will tell you whether the public page contained patterns we look for, whether anon reads returned rows, and which headers were missing. Authentication bugs, server functions, and dependency issues are outside that list.

If you can edit the site, add it and prove ownership before any request is made.