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

1 Commits

Author SHA1 Message Date
980f00255b fix(auth): add trustedOrigins to BetterAuth config
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
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>
2026-03-15 11:44:00 -05:00