// harden-portal-requests (F30): baseline response headers for every path. // Framing is 'self', not 'none': the admin email preview renders in a same-origin srcdoc iframe. // script-src is per request (a nonce), so pages get it from middleware.ts via contentSecurityPolicy.ts (F30). export const SECURITY_HEADERS: readonly { key: string; value: string }[] = [ { key: "X-Content-Type-Options", value: "nosniff" }, { key: "X-Frame-Options", value: "SAMEORIGIN" }, { key: "Content-Security-Policy", value: "frame-ancestors 'self'; object-src 'none'; base-uri 'self'" }, { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" }, { key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=(), payment=()" }, ];