Skip to content

Commit

Permalink
Merge pull request #15 from uphold/enhancement/cookie-path
Browse files Browse the repository at this point in the history
Update cookie definition to use root path
  • Loading branch information
hitmanmcc authored May 9, 2018
2 parents 1490224 + 6be2707 commit 3b44908
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 3b44908

Please sign in to comment.