diff --git a/EsefexApi/api/routes/getlinkredirect.go b/EsefexApi/api/routes/getlinkredirect.go index 91acef0..0464cae 100644 --- a/EsefexApi/api/routes/getlinkredirect.go +++ b/EsefexApi/api/routes/getlinkredirect.go @@ -39,11 +39,12 @@ func (h *RouteHandlers) GetLinkRedirect(w http.ResponseWriter, r *http.Request) } cookie := http.Cookie{ - Name: "User-Token", - Value: string(userToken), - Path: "/", - MaxAge: 0, - Secure: true, + Name: "User-Token", + Value: string(userToken), + Path: "/", + MaxAge: 0, + // enable this once we have https + Secure: false, HttpOnly: true, SameSite: http.SameSiteDefaultMode, } diff --git a/EsefexApi/api/templates/link.html b/EsefexApi/api/templates/link.html index fe4d147..99a9094 100644 --- a/EsefexApi/api/templates/link.html +++ b/EsefexApi/api/templates/link.html @@ -4,8 +4,6 @@