From 11c7fae3b9d93ebb147a6361cffdf6e30bcd61d3 Mon Sep 17 00:00:00 2001 From: julianajlk Date: Mon, 18 Nov 2024 16:49:39 -0500 Subject: [PATCH] fix: Remove hardcoded domain check --- src/cohesion/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cohesion/helpers.js b/src/cohesion/helpers.js index de0c30720..077994e76 100644 --- a/src/cohesion/helpers.js +++ b/src/cohesion/helpers.js @@ -12,7 +12,7 @@ export const getCorrelationID = () => { // If the tagular correlation ID cookie was set before we added the change to // specify the domain, it was automatically added to the current domain. // Always delete the cookie with the current domain - new Cookies().remove(COOKIE_NAME, { domain: 'payment.edx.org', path: '/' }); + new Cookies().remove(COOKIE_NAME, { domain: window.location.hostname, path: '/' }); function getDomain() { const { hostname } = window.location;