diff --git a/next.config.mjs b/next.config.mjs index 7d7d24d..4eeff4e 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -62,18 +62,23 @@ const nextConfig = { key: 'Content-Security-Policy', value: [ "default-src 'self'", - "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://apis.google.com", - "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com", - "font-src 'self' https://fonts.gstatic.com", + "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://apis.google.com https://challenges.cloudflare.com", + "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.cdnfonts.com", + "font-src 'self' https://fonts.gstatic.com https://fonts.cdnfonts.com data:", "img-src 'self' data: blob: https:", - "connect-src 'self' https://*.firebaseapp.com https://*.googleapis.com https://identitytoolkit.googleapis.com https://securetoken.googleapis.com", - "frame-src 'self' https://accounts.google.com", + "connect-src 'self' https://*.firebaseapp.com https://*.googleapis.com https://identitytoolkit.googleapis.com https://securetoken.googleapis.com https://challenges.cloudflare.com", + "frame-src 'self' https://accounts.google.com https://challenges.cloudflare.com", "object-src 'none'", "base-uri 'self'", "form-action 'self'", ...(isProd ? ["upgrade-insecure-requests"] : []), ].join('; '), }, + // Strict Cache-Control to prevent browsers & CDNs from serving stale HTML + { key: 'Cache-Control', value: 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0, s-maxage=0' }, + { key: 'Pragma', value: 'no-cache' }, + { key: 'Expires', value: '0' }, + { key: 'Surrogate-Control', value: 'no-store' }, // Block clickjacking { key: 'X-Frame-Options', value: 'SAMEORIGIN' }, // Prevent MIME sniffing diff --git a/src/app/apps/page.tsx b/src/app/apps/page.tsx index e04b4ef..7c2ca17 100644 --- a/src/app/apps/page.tsx +++ b/src/app/apps/page.tsx @@ -31,6 +31,9 @@ export async function generateMetadata(): Promise { }; } +export const dynamic = 'force-dynamic'; +export const revalidate = 0; + export default function AppsIndexPage() { const page = getPageConfig('apps'); if (!page) notFound(); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 572c3d1..867373d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -169,6 +169,45 @@ export default function RootLayout({ return ( + + + +