Skip to content

Commit

Permalink
Merge branch 'canary' into styled-jsx-test
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Sep 7, 2023
2 parents b8d0537 + cc34ea5 commit 3518162
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For example:
import { NextRequest, NextResponse } from 'next/server'

export function middleware(request: NextRequest) {
const nonce = crypto.randomUUID()
const nonce = Buffer.from(crypto.randomUUID()).toString('base64')
const cspHeader = `
default-src 'self';
script-src 'self' 'nonce-${nonce}' 'strict-dynamic';
Expand Down Expand Up @@ -76,7 +76,7 @@ export function middleware(request: NextRequest) {
import { NextResponse } from 'next/server'

export function middleware(request) {
const nonce = crypto.randomUUID()
const nonce = Buffer.from(crypto.randomUUID()).toString('base64')
const cspHeader = `
default-src 'self';
script-src 'self' 'nonce-${nonce}' 'strict-dynamic';
Expand Down

0 comments on commit 3518162

Please sign in to comment.