mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Revert cookie flag from strict to lax mode otherwise oauth2 won't work
This commit is contained in:
parent
46932c91a6
commit
c1e1506720
3 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@ func New(name, value string, isHTTPS bool, path string) *http.Cookie {
|
|||
Secure: isHTTPS,
|
||||
HttpOnly: true,
|
||||
Expires: time.Now().Add(cookieDuration * 24 * time.Hour),
|
||||
SameSite: http.SameSiteStrictMode,
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ func Expired(name string, isHTTPS bool, path string) *http.Cookie {
|
|||
HttpOnly: true,
|
||||
MaxAge: -1,
|
||||
Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||
SameSite: http.SameSiteStrictMode,
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue