fix: set trusted proxies
This commit is contained in:
@@ -71,6 +71,8 @@ func main() {
|
||||
|
||||
router := gin.Default()
|
||||
|
||||
router.SetTrustedProxies([]string{"127.0.0.1/32", "::1/128"})
|
||||
|
||||
store := cookie.NewStore([]byte(os.Getenv("COOKIE_SECRET")))
|
||||
router.Use(sessions.Sessions("auth-session", store))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user