@datadog/browser-core
Advanced tools
Comparing version 1.12.5 to 1.12.6
@@ -36,3 +36,3 @@ "use strict"; | ||
var expires = "expires=" + date.toUTCString(); | ||
document.cookie = name + "=" + value + ";" + expires + ";path=/"; | ||
document.cookie = name + "=" + value + ";" + expires + ";path=/;samesite=strict"; | ||
} | ||
@@ -39,0 +39,0 @@ exports.setCookie = setCookie; |
@@ -25,3 +25,3 @@ "use strict"; | ||
document.cookie.split(';').forEach(function (c) { | ||
document.cookie = c.replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); | ||
document.cookie = c.replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/;samesite=strict"); | ||
}); | ||
@@ -28,0 +28,0 @@ } |
@@ -33,3 +33,3 @@ export var COOKIE_ACCESS_DELAY = 1000; | ||
var expires = "expires=" + date.toUTCString(); | ||
document.cookie = name + "=" + value + ";" + expires + ";path=/"; | ||
document.cookie = name + "=" + value + ";" + expires + ";path=/;samesite=strict"; | ||
} | ||
@@ -36,0 +36,0 @@ export function getCookie(name) { |
@@ -20,3 +20,3 @@ import { __assign, __awaiter, __generator } from "tslib"; | ||
document.cookie.split(';').forEach(function (c) { | ||
document.cookie = c.replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); | ||
document.cookie = c.replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/;samesite=strict"); | ||
}); | ||
@@ -23,0 +23,0 @@ } |
{ | ||
"name": "@datadog/browser-core", | ||
"version": "1.12.5", | ||
"version": "1.12.6", | ||
"license": "Apache-2.0", | ||
@@ -26,3 +26,3 @@ "main": "cjs/index.js", | ||
}, | ||
"gitHead": "f6a5dc2c95307518a6dc0a11865e86a7968dec7c" | ||
"gitHead": "6854118da53ffa210af682a7cb5de072b47823ff" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
376374