From a96d9b5c68c2383ae0c9d63b8d49bb34faeb138b Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 31 Jan 2022 12:54:56 +0100 Subject: [PATCH] Fixed cookie not set --- api/login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/login.go b/api/login.go index 2c1143f..89765be 100644 --- a/api/login.go +++ b/api/login.go @@ -34,6 +34,7 @@ func Login(w http.ResponseWriter, r *http.Request) { http.SetCookie(w, &http.Cookie{ Name: "session_id", Value: sessionID, + Path: "/", }) w.WriteHeader(http.StatusOK) }