Skip to content

Commit

Permalink
Change SameSite to Lax in app.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ochan1 committed Apr 27, 2021
1 parent 2fb0b83 commit 79950a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ require 'responses'
app.cookie_attributes = function(self)
local expires = date(true):adddays(365):fmt("${http}")
local secure = config._name ~= 'development' and " Secure" or ""
return "Expires=" .. expires .. "; Path=/; HttpOnly; SameSite=None;" .. secure
return "Expires=" .. expires .. "; Path=/; HttpOnly; SameSite=Lax;" .. secure
end

-- Remove the protocol and port from a URL
Expand Down

0 comments on commit 79950a8

Please sign in to comment.