diff --git a/api/main.go b/api/main.go index 2492874..71eba6f 100644 --- a/api/main.go +++ b/api/main.go @@ -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))