Archived
Template
1
0

Initial commit

This commit is contained in:
uberswe
2021-12-12 14:56:13 +01:00
commit 0511f8fbca
1627 changed files with 773292 additions and 0 deletions

14
middleware/sensitive.go Normal file
View File

@ -0,0 +1,14 @@
package middleware
import (
"github.com/gin-gonic/gin"
)
// Sensitive middleware handles headers that should be set for routes that may contain sensitive data such as personal information
func Sensitive() gin.HandlerFunc {
return func(c *gin.Context) {
c.Header("Cache-control", "no-store")
c.Header("Pragma", "no-cache")
c.Next()
}
}