remove http only

This commit is contained in:
kandrusyak
2023-07-25 01:24:55 +03:00
parent 31fcc2863d
commit 61610b1009

View File

@@ -43,10 +43,9 @@ func Login(c echo.Context) (err error) {
} }
c.SetCookie(&http.Cookie{ c.SetCookie(&http.Cookie{
Name: "accessToken", Name: "accessToken",
Value: _token, Value: _token,
HttpOnly: true, Path: "/",
Path: "/",
}) })
return c.JSON(http.StatusOK, u) return c.JSON(http.StatusOK, u)