Skip to content

Commit

Permalink
bug: fix csp erros with youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Sep 17, 2024
1 parent fee5bdc commit 96119d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middlewares/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

var securityHeaders = map[string]string{
"Cross-Origin-Opener-Policy": "same-origin",
"Content-Security-Policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' https: data:; form-action 'self' *.stripe.com; block-all-mixed-content;",
"Content-Security-Policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' https: data:; frame-src 'self' https://www.youtube.com https://youtube.com; form-action 'self' *.stripe.com; block-all-mixed-content;",
"X-Frame-Options": "DENY",
"X-Content-Type-Options": "nosniff",
}
Expand Down

0 comments on commit 96119d5

Please sign in to comment.