fix(auth): add trustedOrigins to BetterAuth for cross-origin web dashboard #111

Merged
jason.woltje merged 1 commits from fix/betterauth-cors into main 2026-03-15 16:44:21 +00:00
Owner

BetterAuth rejects requests from origins not in trustedOrigins. Reads GATEWAY_CORS_ORIGIN (comma-separated), defaults to http://localhost:3000.

BetterAuth rejects requests from origins not in trustedOrigins. Reads GATEWAY_CORS_ORIGIN (comma-separated), defaults to http://localhost:3000.
jason.woltje added 1 commit 2026-03-15 16:44:13 +00:00
fix(auth): add trustedOrigins to BetterAuth config
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
980f00255b
BetterAuth rejects cross-origin requests unless the origin is in
trustedOrigins. The web dashboard at localhost:3000 was getting
"Invalid origin" errors when calling auth endpoints on localhost:4000.

Reads GATEWAY_CORS_ORIGIN env var (comma-separated), defaults to
http://localhost:3000.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jason.woltje merged commit 014ebdacda into main 2026-03-15 16:44:21 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#111