Commit c4abf636 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: user agent parameter

parent d1393a56
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -23,7 +23,8 @@ parse_dict = urlparse(REQUEST.other.get('ACTUAL_URL')) ...@@ -23,7 +23,8 @@ parse_dict = urlparse(REQUEST.other.get('ACTUAL_URL'))
same_site = portal.ERP5Site_getAuthCookieSameSite(scheme=parse_dict.scheme, same_site = portal.ERP5Site_getAuthCookieSameSite(scheme=parse_dict.scheme,
hostname=parse_dict.hostname, hostname=parse_dict.hostname,
port=parse_dict.port, 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'): if same_site not in ('None', 'Lax', 'Strict'):
# Do not use the SameSite attribute # Do not use the SameSite attribute
same_site = None 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