fix: changed nonce attribution mismatch and removed ambient-light from middleware

This commit is contained in:
2025-07-13 22:44:05 +02:00
parent 2284a8dd08
commit e100803ee9
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ export default async function RootLayout({
<head>
<script
type="application/ld+json"
{...(nonce ? { nonce } : {})}
nonce={nonce}
// biome-ignore lint/security/noDangerouslySetInnerHtml: Safe use for JSON-LD structured data with CSP nonce
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>

View File

@ -78,7 +78,7 @@ export function middleware(request: NextRequest) {
"accelerometer=()",
"gyroscope=()",
"magnetometer=()",
"ambient-light=()",
// Removed ambient-light as it's deprecated
"encrypted-media=()",
"autoplay=(self)",
].join(", ")