Skip to content

Commit 597f169

Browse files
committed
fix: add 'unsafe-inline' to script-src CSP — Next.js requires inline scripts for hydration
Without this, React never hydrates on the client side, making all interactive elements (hamburger menu, login form, etc.) completely non-functional. This was the root cause of the mobile menu not working.
1 parent 6e36f6c commit 597f169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const nextConfig = {
4242
// 'unsafe-eval' has been removed to prevent script injection attacks.
4343
value: [
4444
"default-src 'self'",
45-
"script-src 'self' https://datafa.st",
45+
"script-src 'self' 'unsafe-inline' https://datafa.st",
4646
"style-src 'self' 'unsafe-inline'",
4747
"img-src 'self' data: https:",
4848
"font-src 'self' data:",

0 commit comments

Comments
 (0)