diff --git a/package.json b/package.json index 55d9919..8d5aca5 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,6 @@ "mocha": "^2.4.5", "run-sequence": "^1.2.2", "serve-static": "^1.10.2", - "zombie": "^4.2.1" + "zombie": "^5.0.8" } } diff --git a/src/xdomain_cookie.js b/src/xdomain_cookie.js index 3aed312..aed2d75 100644 --- a/src/xdomain_cookie.js +++ b/src/xdomain_cookie.js @@ -106,7 +106,7 @@ function _set_local_cookie( cookie_name, cookie_value, expires_days ){ var d = new Date(); d.setTime(d.getTime() + ( expires_days*1000*60*60*24) ); - var cookie_val = cookie_name + "=" + cookie_value + "; expires="+d.toUTCString() + (_secure_only ? ";secure" : ""); + var cookie_val = cookie_name + "=" + cookie_value + "; expires="+d.toUTCString() + (_secure_only ? ";secure" : "") + "; path=/"; _log("_set_local_cookie", cookie_val); document.cookie = cookie_val; }