add session

This commit is contained in:
landaiqing
2024-09-23 13:31:57 +08:00
parent 7aae53e533
commit 5cc4294268
14 changed files with 250 additions and 131 deletions

View File

@@ -6,9 +6,8 @@ import (
func SecurityHeaders() gin.HandlerFunc {
return func(c *gin.Context) {
//url := strings.TrimPrefix(global.CONFIG.System.Web, "https://")
//requestHost := c.Request.Host
//if requestHost != url {
//if requestHost != global.CONFIG.System.Web {
// result.FailWithMessage(ginI18n.MustGetMessage(c, "IllegalRequests"), c)
// c.Abort()
// return