import type { NextConfig } from "next"; const securityHeaders = [ { key: "X-Content-Type-Options", value: "nosniff" }, { key: "X-Frame-Options", value: "DENY" }, { key: "Referrer-Policy", value: "strict-origin-when-cross-origin" }, { key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=()" }, // Limited to directives that don't conflict with Next.js inline scripts: // blocks tag hijacking, plugin content, and framing (clickjacking) { key: "Content-Security-Policy", value: "base-uri 'self'; object-src 'none'; frame-ancestors 'none'", }, ]; const nextConfig: NextConfig = { poweredByHeader: false, images: { remotePatterns: [ { protocol: "https", hostname: "lh3.googleusercontent.com", pathname: "/**", }, ], }, async headers() { return [{ source: "/:path*", headers: securityHeaders }]; }, }; export default nextConfig;