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> <head>
<script <script
type="application/ld+json" type="application/ld+json"
{...(nonce ? { nonce } : {})} nonce={nonce}
// biome-ignore lint/security/noDangerouslySetInnerHtml: Safe use for JSON-LD structured data with CSP nonce // biome-ignore lint/security/noDangerouslySetInnerHtml: Safe use for JSON-LD structured data with CSP nonce
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/> />

View File

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