From 3c3cf08656111ef3599f9a028b19022ee96750f9 Mon Sep 17 00:00:00 2001 From: Wouter Groeneveld Date: Sat, 9 May 2020 23:53:42 +0000 Subject: [PATCH] utils.js: use global.origin in cookieSet() --- frontend/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }