12 lines
859 B
Go
12 lines
859 B
Go
package utils
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
func SetHeaders(c *fiber.Ctx) {
|
|
c.Set("X-Frame-Options", "DENY")
|
|
c.Set("Referrer-Policy", "no-referrer")
|
|
c.Set("X-Content-Type-Options", "nosniff")
|
|
c.Set("X-Robots-Tag", "noindex, noimageindex, nofollow")
|
|
c.Set("Strict-Transport-Security", "max-age=31557600")
|
|
c.Set("Permissions-Policy", "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), interest-cohort=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()")
|
|
} |