Skip to content

Commit

Permalink
Add object-src CSP rule
Browse files Browse the repository at this point in the history
  • Loading branch information
xremming committed Dec 11, 2023
1 parent 327c920 commit bfb48c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func makeCSP() (string, string) {
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 https://cloudflareinsights.com",
"object-src 'none'",
"child-src 'none'",
}

Expand Down

0 comments on commit bfb48c4

Please sign in to comment.