Skip to content

Commit 3b44908

Browse files
authored
Merge pull request #15 from uphold/enhancement/cookie-path
Update cookie definition to use root path
2 parents 1490224 + 6be2707 commit 3b44908

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/browser/services/cookie-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ export default class CookieStorage {
5454
}
5555

5656
_setCookie(data) {
57-
document.cookie = `${this.storageName}=${encodeURIComponent(JSON.stringify(data))}`;
57+
document.cookie = `${this.storageName}=${encodeURIComponent(JSON.stringify(data))};path=/`;
5858
}
5959
}

0 commit comments

Comments
 (0)