1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: set basic security headers (resolve #174)

This commit is contained in:
Ferdinand Mütsch
2021-04-16 12:35:49 +02:00
parent b9ea6530f9
commit 337b39481b
2 changed files with 33 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ func main() {
if config.Sentry.Dsn != "" {
router.Use(middlewares.NewSentryMiddleware())
}
rootRouter.Use(middlewares.NewSecurityMiddleware())
// Route registrations
homeHandler.RegisterRoutes(rootRouter)