Skip to content

Commit

Permalink
fix(handlers): correct CSP values
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Jul 27, 2021
1 parent 073fcaa commit a856544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/core/CSP.go
Expand Up @@ -7,7 +7,7 @@ import (
var (
headerCSP = []byte(fiber.HeaderContentSecurityPolicy)

valueCSP = []byte("default-src 'none'; font-src https://fonts.imma.link; img-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests; base-uri: 'none'; object-src: 'none'; worker-src: 'none'; child-src: 'none'; frame-src: 'none';")
valueCSP = []byte("default-src 'none'; font-src https://fonts.imma.link; img-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests; base-uri 'none'; object-src 'none'; worker-src 'none'; child-src 'none'; frame-src 'none';")
)

// CSPMiddleware adds the CSP Header
Expand Down

0 comments on commit a856544

Please sign in to comment.