Cookie - Information Disclosure
This commit is contained in:
parent
70134c5491
commit
cb9542968e
|
|
@ -1227,10 +1227,11 @@ var tarteaucitron = {
|
|||
regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
|
||||
cookie = tarteaucitron.cookie.read().replace(regex, ""),
|
||||
value = tarteaucitron.parameters.cookieName + '=' + cookie + '!' + key + '=' + status,
|
||||
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? 'domain=' + tarteaucitron.parameters.cookieDomain + ';' : '';
|
||||
domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? '; domain=' + tarteaucitron.parameters.cookieDomain : '';
|
||||
secure = location.protocol === 'https:' ? '; Secure' : '';
|
||||
|
||||
d.setTime(expireTime);
|
||||
document.cookie = value + '; expires=' + d.toGMTString() + '; path=/;' + domain;
|
||||
document.cookie = value + '; expires=' + d.toGMTString() + '; path=/' + domain + secure + '; samesite=lax';
|
||||
},
|
||||
"read": function () {
|
||||
"use strict";
|
||||
|
|
|
|||
Loading…
Reference in New Issue