next.config.ts
Rama main · réplica de lectura del repositorio original.
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
devIndicators: false,
async headers() {
return [
{
source: "/(.*)",
headers: [
{ key: "Cache-Control", value: "no-store, must-revalidate" },
{ key: "X-Content-Type-Options", value: "nosniff" },
{ key: "X-Frame-Options", value: "DENY" },
{ key: "X-XSS-Protection", value: "1; mode=block" },
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
{ key: "Permissions-Policy", value: "camera=(), microphone=(self), geolocation=()" },
{ key: "Strict-Transport-Security", value: "max-age=63072000; includeSubDomains; preload" },
{
key: "Content-Security-Policy",
value: [
"default-src 'self'",
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://static.cloudflareinsights.com",
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
"img-src 'self' data: https: blob:",
"font-src 'self' data: https://fonts.gstatic.com",
"connect-src 'self' https://*.supabase.co wss://*.supabase.co https://cloudflareinsights.com https://vitals.vercel-insights.com https://generativelanguage.googleapis.com https://api.openai.com https://api.groq.com http://127.0.0.1:12345 http://localhost:12345",
"frame-ancestors 'none'",
].join("; "),
},
],
},
]
},
};
export default nextConfig;