Skip to content

fix(desktop): resolve sidecar 401s, variant lock & registration form#709

Merged
koala73 merged 1 commit intomainfrom
fix/desktop-401-variant-registration
Mar 1, 2026
Merged

fix(desktop): resolve sidecar 401s, variant lock & registration form#709
koala73 merged 1 commit intomainfrom
fix/desktop-401-variant-registration

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Mar 1, 2026

Summary

  • Sidecar 401 fix: Handler modules' validateApiKey() was receiving empty Origin (stripped by toHeaders({ stripOrigin: true })) + no API key → 401 for ALL desktop API calls. Fix: inject Origin: http://127.0.0.1:<port> after stripping client Origin, matching BROWSER_ORIGIN_PATTERNS trusted localhost.
  • Variant fix: Desktop builds inheriting VITE_VARIANT=tech from .env.local locked users into TECH variant. Fix: check localStorage FIRST when running in Tauri.
  • Registration form: Force-show for email delivery testing.
  • Version bump to 2.5.23.

Test plan

  • Launch desktop app — verify API calls no longer return 401
  • Switch variant from tech → full → verify it persists after reload
  • Open settings → verify registration form is shown
  • Verify web deployment is unaffected (localhost patterns only enabled when NODE_ENV ≠ production)

…rm (#v2.5.23)

- Sidecar 401 fix: inject trusted localhost Origin on requests passed to
  handler modules. The handler's validateApiKey() was seeing empty Origin
  (stripped by toHeaders) + no API key → 401 for ALL desktop API calls.
- Variant fix: check localStorage FIRST when running in Tauri desktop,
  so .env.local VITE_VARIANT doesn't override user's variant selection.
- Registration: force-show form for email delivery testing.
- Bump version to 2.5.23.
@vercel
Copy link

vercel bot commented Mar 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Mar 1, 2026 10:08pm
worldmonitor-finance Building Building Preview, Comment Mar 1, 2026 10:08pm
worldmonitor-happy Building Building Preview, Comment Mar 1, 2026 10:08pm
worldmonitor-startup Building Building Preview, Comment Mar 1, 2026 10:08pm

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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.

1 participant