mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 08:32:09 +01:00
fix: changed nonce attribution mismatch and removed ambient-light from middleware
This commit is contained in:
@ -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) }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -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(", ")
|
||||||
|
|||||||
Reference in New Issue
Block a user