mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
SameSite=Strict breaks multisite
This commit is contained in:
parent
2699aa8db7
commit
7be6e76cb8
1 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ function set_auth_cookie(user, domain)
|
|||
"; Expires="..os.date("%a, %d %b %Y %X UTC", expire)..
|
||||
"; Secure"..
|
||||
"; HttpOnly"..
|
||||
"; SameSite=Strict ;;"
|
||||
"; SameSite=Lax ;;"
|
||||
|
||||
ngx.header["Set-Cookie"] = {
|
||||
"SSOwAuthUser="..user..cookie_str,
|
||||
|
@ -169,7 +169,7 @@ function delete_cookie()
|
|||
"; Expires="..expired_time..
|
||||
"; Secure"..
|
||||
"; HttpOnly"..
|
||||
"; SameSite=Strict ;;"
|
||||
"; SameSite=Lax ;;"
|
||||
ngx.header["Set-Cookie"] = {
|
||||
"SSOwAuthUser="..cookie_str,
|
||||
"SSOwAuthHash="..cookie_str,
|
||||
|
@ -186,7 +186,7 @@ function delete_redirect_cookie()
|
|||
"; Expires="..expired_time..
|
||||
"; Secure"..
|
||||
"; HttpOnly"..
|
||||
"; SameSite=Strict ;;"
|
||||
"; SameSite=Lax ;;"
|
||||
ngx.header["Set-Cookie"] = "SSOwAuthRedirect=;" ..cookie_str
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue