lowConfirmedwarnSecurity headers
Content-Security-Policy allows unsafe scripts
script-src permits 'unsafe-inline' which removes most XSS protection.
Confirmed from the HTTP response headers of the main document.
Locations
- content-security-policy: default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self' https://c
Copy-paste fix prompt
Security fix for this Lovable project (React + Supabase). Tighten my CSP script-src: remove 'unsafe-inline' and wildcard sources, and use per-request nonces or hashes for the inline scripts my framework requires. Put any server-side logic in a Supabase Edge Function, store keys as Edge Function secrets, and show me the SQL migrations separately so I can review them before running.