Skip to content

Commit

Permalink
fix(toolbar): Strip the protocol from regionUrl to set cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan953 committed Dec 13, 2024
1 parent a78b8a9 commit eae228c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/templates/sentry/toolbar/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
'did-login': ({ cookie, token }) => {
if (cookie) {
document.cookie = getCookieValue(cookie, window.location.hostname);
document.cookie = getCookieValue(cookie, regionUrl);
document.cookie = getCookieValue(cookie, new URL(regionUrl).hostname);
log('Saved a cookie', document.cookie.indexOf(cookie) >= 0);
}
if (token) {
Expand Down

0 comments on commit eae228c

Please sign in to comment.