Merge pull request #163 from SilverViper/patch-1

[fix] Invalid even more cookies
This commit is contained in:
Alexandre Aubin 2020-07-27 16:46:51 +02:00 committed by GitHub
commit 1142c76a59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,7 +177,7 @@ function set_auth_cookie(user, domain)
"; Expires="..os.date("%a, %d %b %Y %X UTC", expire)..
"; Secure"..
"; HttpOnly"..
"; SameSite=Lax ;;"
"; SameSite=Lax"
ngx.header["Set-Cookie"] = {
"SSOwAuthUser="..user..cookie_str,
@ -197,7 +197,7 @@ function delete_cookie()
"; Expires="..expired_time..
"; Secure"..
"; HttpOnly"..
"; SameSite=Lax ;;"
"; SameSite=Lax"
ngx.header["Set-Cookie"] = {
"SSOwAuthUser="..cookie_str,
"SSOwAuthHash="..cookie_str,
@ -214,8 +214,8 @@ function delete_redirect_cookie()
"; Expires="..expired_time..
"; Secure"..
"; HttpOnly"..
"; SameSite=Lax ;;"
ngx.header["Set-Cookie"] = "SSOwAuthRedirect=;" ..cookie_str
"; SameSite=Lax"
ngx.header["Set-Cookie"] = "SSOwAuthRedirect=" ..cookie_str
end