-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ALL] Add support for Same-Site and secure Cookies #51065
Comments
Thanks for the report @yucer! The SaaS team should be working on this actually :) Not sure who's responsible but it is known at Odoo anyways. |
I confirm this problem with Odoo 12.0 |
I confirm this in Odoo 13.0. set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=False, httponly=False, samesite=None) |
Due to this update of the chrome, PayUMoney Payment Acquire is also not working properly. I recently found that after placing an order with successful payment, Orders are not get confirmed. |
facing the same issue after setting to samesite=None, secure=False. What could be the solution to this? |
If you set sametime="None"(note: quotes) you HAVE to set secure=True otherwise the cookie is rejected. This is also not supported on werkzeug 0.14.1 which is what Odoo 13 used afaik. You can either wait for Odoo to support Werkzeug 1.0 or alternatively set-up your server configuration to overwrite cookies |
Hi!
The way to go is to actually set the right cookies on your web server (Nginx, Apache,...) based on your requirements. We may set |
I propose that we do the following in odoo/http.py: Change 'set_cookie' From:
To:
This way, the default behavior will be as is today, with giving an option to Saas user an option to change it in system parameters if they need it. |
Impacted versions: all ?
Same-Site cookies were announced by Firefox and Google in the last years.
The browsers are actively warning that they will soon not accept unsecured cookies without the samesite parameter.
Werkzeug has already merged the changes relative to samesite and secure cookies.
The browsers can stop suddenly the support of the current cookies being used by Odoo, and the browsers versions is not a dependency that can be controlled by the release management. Such situation would be more stressful for the support team that adding the support previously.
Steps to reproduce: No action needed to reproduce it.
Current behavior: Warning appears without further action. They can be errors.
Expected behavior: No Warning. Secure cookies or Same-Site cookies should be used.
This call to "set_cookie":
odoo/odoo/http.py
Line 1401 in f96a17c
'Strict'
,'Lax'
orNone
. Also the secure parameter could be passed to prevent this issue.Supposedly all the calls for other cookies should do something similar, but I guess none is more important that the session_id. There is also one explicit set_cookie for the session_id in the implementation of the web tours.
The pinpointed version used in Odoo 12.0 is Werkzeug 0.11.15 and it still has no support for the parameter. So upgrading the Werzeug for 12.0 might be mandatory once the samesite cookies are enforced by the browsers.
References:
The text was updated successfully, but these errors were encountered: