diff --git a/helpers.lua b/helpers.lua index 4ca3b1a..e8a46e5 100644 --- a/helpers.lua +++ b/helpers.lua @@ -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