liquid_feedback_frontend
changeset 1552:e670b2c341e6
Do not create new session for cors requests
author | bsw |
---|---|
date | Wed Oct 28 17:57:10 2020 +0100 (2020-10-28) |
parents | 408e4b1d5234 |
children | 282c46bccb7a |
files | app/main/_filter/20_session.lua |
line diff
1.1 --- a/app/main/_filter/20_session.lua Mon Oct 26 11:06:53 2020 +0100 1.2 +++ b/app/main/_filter/20_session.lua Wed Oct 28 17:57:10 2020 +0100 1.3 @@ -51,7 +51,7 @@ 1.4 1.5 if not app.session then 1.6 app.session = Session:new() 1.7 - if need_session then 1.8 + if need_session and not cors_request then 1.9 app.session:set_cookie() 1.10 end 1.11 end