tset
This commit is contained in:
parent
ffbd48acfd
commit
44cbf85403
@ -41,10 +41,10 @@ func Login(w http.ResponseWriter, r *http.Request) {
|
|||||||
if jwtToken != "" {
|
if jwtToken != "" {
|
||||||
|
|
||||||
cookie := &http.Cookie{Name: "jwt",
|
cookie := &http.Cookie{Name: "jwt",
|
||||||
Value: jwtToken,
|
Value: jwtToken,
|
||||||
HttpOnly: true,
|
//HttpOnly: true,
|
||||||
Secure: true,
|
//Secure: true,
|
||||||
SameSite: http.SameSiteStrictMode,
|
SameSite: http.SameSiteLaxMode,
|
||||||
Expires: time.Now().Add(24 * time.Hour),
|
Expires: time.Now().Add(24 * time.Hour),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user