-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: dont require server config base url on login #3375
Conversation
ui/pages/login/index.js
Outdated
let cookieDomain = window.location.host | ||
let parts = cookieDomain.split('.') | ||
if (parts.length > 2) { | ||
cookieDomain = parts.slice(-2).join('.') // join the last two parts of the domain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, would it be better to set it to all but the first part? e.g. myorg.dev.test.com
may not work here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this to just remove the first part that is the org subdomain, this will work in dev and prod as you pointed out
8bfbf1a
to
7d0828d
Compare
7b9958f
to
af1201d
Compare
Summary
When no server URL is set in server configuration set the default server URL to the current host on response. This allows the login response to continue when the optional
baseURL
server configuration is not set, but it also ensures that we wait until we have checked the server to see if there is one set.Checklist
Related Issues
Resolves #3374