Cursor and v0 app security: check what your deployed site actually ships
Cursor and v0 write code. They do not see what your deployed site actually serves. A repo review can pass while the live bundle leaks, because build settings, environment variables and hosting decide what ships. Check t
Cursor and v0 write code. They do not see what your deployed site actually serves. A repo review can pass while the live bundle leaks, because build settings, environment variables and hosting decide what ships.
Check the live bundle
Open your deployed app, open DevTools, Sources, and search the main JS files for service_role, sk-, sk_live, AKIA and -----BEGIN. In Next.js, anything named NEXT_PUBLIC_ is sent to every visitor. In Vite, anything named VITE_ is too.
Check public files
Visit /.env, /.env.production, /.git/HEAD and /robots.txt on your domain. Real content in the first three is a finding.
Check source maps
If *.js.map files load in the browser, your original source is public. Turn them off for production or restrict them.
Check anonymous data access
If the app uses Supabase, a table that returns rows with only the public anon key is open. Turn on RLS and write per-operation policies tied to auth.uid().
Check headers
Add HSTS, X-Content-Type-Options and a Content-Security-Policy. Do not use wildcard CORS on JSON that returns user data.
Fix order
Revoke any leaked secret first, then close database access, then files and maps, then headers.
Honest limits
An outside check cannot see server code or login logic. A clean result means no exposure found in what you ship publicly.
ProofForge scans the live URL read-only, with no login, and writes fix prompts you can paste into Cursor or v0. Free first scan: https://proofforge.live/check/cursor
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.