Commit c4abf636 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: user agent parameter

parent d1393a56
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>scheme, hostname, port, path</string> </value>
<value> <string>scheme, hostname, port, path, user_agent</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -23,7 +23,8 @@ parse_dict = urlparse(REQUEST.other.get('ACTUAL_URL'))
same_site = portal.ERP5Site_getAuthCookieSameSite(scheme=parse_dict.scheme,
hostname=parse_dict.hostname,
port=parse_dict.port,
path=parse_dict.path)
path=parse_dict.path,
user_agent=REQUEST.environ.get('HTTP_USER_AGENT'))
if same_site not in ('None', 'Lax', 'Strict'):
# Do not use the SameSite attribute
same_site = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment