rimgo/pages/privacy.go

19 lines
444 B
Go
Raw Normal View History

package pages
import (
"github.com/gofiber/fiber/v2"
2023-06-10 16:27:20 +00:00
"codeberg.org/rimgo/rimgo/utils"
)
func HandlePrivacy(c *fiber.Ctx) error {
utils.SetHeaders(c)
c.Set("X-Frame-Options", "DENY")
2024-02-05 02:24:55 +00:00
c.Set("Content-Security-Policy", "default-src 'none'; form-action 'self'; style-src 'self'; img-src 'self'; manifest-src 'self'; block-all-mixed-content")
return c.Render("privacy", fiber.Map{
"config": utils.Config,
"version": VersionInfo,
})
}