Skip to content

fix(cli): dashboard dev-server sign-in link on localhost (rebased #473, refs #301) - #474

Merged
blitzcrieg1 merged 2 commits into
masterfrom
contrib/pr-473
Nov 25, 2026
Merged

blitzcrieg1 merged 2 commits into
masterfrom
contrib/pr-473

Conversation

@blitzcrieg1

Copy link
Copy Markdown
Owner

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.

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
@blitzcrieg1
blitzcrieg1 merged commit 8a0c567 into master Nov 25, 2026
10 checks passed
@blitzcrieg1
blitzcrieg1 deleted the contrib/pr-473 branch November 25, 2026 09:06
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants