Skip to content

Fix docs faucet CORS origin#612

Merged
emmajam merged 1 commit into
mainfrom
centaur/fix-docs-faucet-cors-1782730785
Jun 29, 2026
Merged

Fix docs faucet CORS origin#612
emmajam merged 1 commit into
mainfrom
centaur/fix-docs-faucet-cors-1782730785

Conversation

@decofe

@decofe decofe commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • allow https://docs.tempo.xyz to call the faucet API
  • switch CORS allow-list matching to exact origin checks
  • add coverage for docs origin and prefix lookalike rejection

Test

  • pnpm exec vitest run src/lib/faucet-api.test.ts --config vitest.unit.config.ts

Note: pnpm test src/lib/faucet-api.test.ts could not start in this sandbox because the shared Vite config fetches mkcert/OpenAPI resources during startup; the focused unit test was run with a temporary minimal Vitest config.

Prompted by: @max-digi

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment Jun 29, 2026 11:03am

Request Review

@emmajam
emmajam merged commit b0a7063 into main Jun 29, 2026
10 checks passed
@emmajam
emmajam deleted the centaur/fix-docs-faucet-cors-1782730785 branch June 29, 2026 12:37
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.

3 participants