Repository navigation
fix(cli): dashboard dev-server sign-in link on localhost (rebased #473, refs #301) - #474
Merged
Merged
Conversation
CodeQL flagged the startswith() on a URL as incomplete URL substring sanitization. Parse the link and assert scheme, host and port.
The sign-in cookie is host-only. The link was printed on 127.0.0.1, so the cookie was set for that site, while the Next dev dashboard on localhost:3000 calls the API as localhost. A browser treats the two as different sites, so every API call returned 401. In --dev-server mode a loopback link is now printed on localhost. Any other host is left alone. Refs #301
5 tasks done
blitzcrieg1
added a commit
that referenced
this pull request
Nov 25, 2026
#474) (#475) Generated by Mistral Vibe. Co-authored-by: Mistral Vibe <[email protected]>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased version of #473 by @surendraSinghKamboj onto master after #472 landed; CHANGELOG/README/test conflicts resolved (README recounted locally: 2980 tests, 104 cases, 55 firings). Closes #473. Refs #301.