Add media-src to CSP
This commit is contained in:
parent
d1a6768cef
commit
d299219533
|
@ -11,7 +11,7 @@ import (
|
||||||
func HandleTag(c *fiber.Ctx) error {
|
func HandleTag(c *fiber.Ctx) error {
|
||||||
utils.SetHeaders(c)
|
utils.SetHeaders(c)
|
||||||
c.Set("Cache-Control", "public,max-age=604800")
|
c.Set("Cache-Control", "public,max-age=604800")
|
||||||
c.Set("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline' 'self'; img-src 'self'; font-src 'self'; manifest-src 'self'; block-all-mixed-content")
|
c.Set("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline' 'self'; media-src 'self'; img-src 'self'; font-src 'self'; manifest-src 'self'; block-all-mixed-content")
|
||||||
|
|
||||||
page := "1"
|
page := "1"
|
||||||
if c.Query("page") != "" {
|
if c.Query("page") != "" {
|
||||||
|
|
Loading…
Reference in New Issue