diff --git a/main.go b/main.go index ead8441..b38441e 100644 --- a/main.go +++ b/main.go @@ -79,7 +79,7 @@ func loginPost(c *gin.Context) { c.AbortWithStatus(http.StatusUnauthorized) } - c.SetCookie("authentication", t, (int)((expiration * time.Hour).Seconds()), "/", "localhost:8080", true, false) + c.SetCookie("authentication", t, (int)((expiration * time.Hour).Seconds()), "/", "localhost:8080", true, true) c.JSON(http.StatusOK, map[string]string{ "token": t,