Skip to content

Commit

Permalink
Edit: csp
Browse files Browse the repository at this point in the history
  • Loading branch information
tszhong0411 committed Mar 5, 2022
1 parent a9f4f0e commit 0459b48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { NextResponse } from 'next/server'
export function middleware(req: NextRequest, ev: NextFetchEvent) {
const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app cdn.jsdelivr.net www.googletagmanager.com www.google-analytics.com *.honghong.me data:;
style-src 'self' 'unsafe-inline' cdn.jsdelivr.net *.fontawesome.com;
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app cdn.jsdelivr.net *.honghong.me data:;
style-src 'self' 'unsafe-inline' cdn.jsdelivr.net;
img-src * blob: data:;
media-src cdn.jsdelivr.net;
connect-src *;
font-src 'self' cdn.jsdelivr.net *.fontawesome.com;
font-src 'self' cdn.jsdelivr.net;
frame-src giscus.app *.youtube.com;
`

Expand Down

1 comment on commit 0459b48

@vercel
Copy link

@vercel vercel bot commented on 0459b48 Mar 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.