# HG changeset patch # User bsw # Date 1603360643 -7200 # Node ID ae194d0235c236b66f479782954ed2cd80842021 # Parent 26a1ed6bc9df32388d5cee3fa732b055e72fd0cc Set session cookie only if session is needed diff -r 26a1ed6bc9df -r ae194d0235c2 app/main/_filter/20_session.lua --- a/app/main/_filter/20_session.lua Thu Oct 22 11:52:15 2020 +0200 +++ b/app/main/_filter/20_session.lua Thu Oct 22 11:57:23 2020 +0200 @@ -51,7 +51,7 @@ if not app.session then app.session = Session:new() - if not cors_request then + if not need_session then app.session:set_cookie() end end