diff --git a/frontend/js/utils.js b/frontend/js/utils.js index d3ae128..305baa1 100644 --- a/frontend/js/utils.js +++ b/frontend/js/utils.js @@ -75,7 +75,7 @@ expires = "; expires=" + date.toUTCString(); var cookieString = name + "=" + value + expires + "; path=/"; - if (/^https:\/\//i.test(origin)) { + if (/^https:\/\//i.test(global.origin)) { cookieString += "; secure"; }