Skip to content

Commit

Permalink
hashicorp#6435 CSP add font-src 'self' to enable loading a local font
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalphettes committed Apr 11, 2019
1 parent 2933616 commit f80d38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/ui.go
Expand Up @@ -32,7 +32,7 @@ type UIConfig struct {
// NewUIConfig creates a new UI config
func NewUIConfig(enabled bool, physicalStorage physical.Backend, barrierStorage logical.Storage) *UIConfig {
defaultHeaders := http.Header{}
defaultHeaders.Set("Content-Security-Policy", "default-src 'none'; connect-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline' 'self'; form-action 'none'; frame-ancestors 'none'")
defaultHeaders.Set("Content-Security-Policy", "default-src 'none'; connect-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline' 'self'; form-action 'none'; frame-ancestors 'none'; font-src 'self'")

return &UIConfig{
physicalStorage: physicalStorage,
Expand Down

0 comments on commit f80d38e

Please sign in to comment.