Skip to content

Commit

Permalink
fix: Remove hardcoded domain check
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Nov 18, 2024
1 parent 5fa5654 commit 11c7fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cohesion/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11c7fae

Please sign in to comment.