Skip to content

Commit

Permalink
Fix CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
xremming committed Dec 11, 2023
1 parent c8bc48d commit a4403b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func makeCSP() (string, string) {

cspLines := []string{
"default-src 'self'",
fmt.Sprintf("script-src 'self' 'nonce-%s' https://static.cloudflareinsights.com", nonce),
"img-src 'self' https://svgs.scryfall.io https://cards.scryfall.io",
"connect-src 'self' https://api.scryfall.com",
fmt.Sprintf("script-src 'self' 'nonce-%s' static.cloudflareinsights.com", nonce),
"img-src 'self' svgs.scryfall.io cards.scryfall.io",
"connect-src 'self' api.scryfall.com cloudflareinsights.com",
"child-src 'none'",
}

Expand Down

0 comments on commit a4403b8

Please sign in to comment.