Restricts script sources to self and known CDNs, connect sources to self and Supabase, blocks unauthorized resource loading. Allows unsafe-inline for styles (CodeMirror requirement) and blob: for sandboxed preview iframes. Addresses SEC-5 (HIGH) from security audit.