removed logging in headers

This commit is contained in:
Alex
2025-03-11 20:51:44 +01:00
parent 60d3f075bf
commit 9427492cb1

View File

@@ -1,13 +1,10 @@
package middlewares
import (
"GoMembership/pkg/logger"
"github.com/gin-gonic/gin"
)
func SecurityHeadersMiddleware() gin.HandlerFunc {
logger.Error.Printf("applying headers")
return func(c *gin.Context) {
c.Header("X-Frame-Options", "DENY")
c.Header("X-Content-Type-Options", "nosniff")