Skip to content

Commit

Permalink
Update cookie definition to use root path
Browse files Browse the repository at this point in the history
  • Loading branch information
pgom committed May 9, 2018
1 parent 1490224 commit 6be2707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/services/cookie-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ export default class CookieStorage {
}

_setCookie(data) {
document.cookie = `${this.storageName}=${encodeURIComponent(JSON.stringify(data))}`;
document.cookie = `${this.storageName}=${encodeURIComponent(JSON.stringify(data))};path=/`;
}
}

0 comments on commit 6be2707

Please sign in to comment.