sveltejs / api.svelte.dev

The API worker source for https://api.svelte.dev
14 stars 4 forks source link

CORS #9

Closed Rich-Harris closed 3 years ago

Rich-Harris commented 3 years ago

Since kit.svelte.dev will fetch docs data directly from the client, we need the relevant access-control-allow-origin header. Easiest thing would just be * rather than faffing about with an allowlist, since we want to be able to use it with preview deployments etc