GuidesNO BACKEND

API proxy without a server

cors.dev is an API proxy you never deploy: prefix any API URL with https://proxy.cors.dev/, free for GET up to 6 MiB with no signup, $5 per month for POST, Authorization and 500,000 requests. A Cloudflare Worker, Vercel Function or Netlify Function does the same job if you would rather own the code; all four are compared below, checked October 2026.

What an API proxy does

Browsers enforce the same-origin policy: page code on your origin can read a response from another origin only if that response carries an Access-Control-Allow-Origin header naming your origin or *. Most public APIs were built for servers, not browsers, and send no such header. An API proxy sits in between and does four things.

  1. Takes the request from your page

    The browser sends the request to proxy.cors.dev with your page Origin. Preflight OPTIONS requests are answered by the proxy itself, with Access-Control-Max-Age: 600, so the API never sees them.

  2. Fetches the API from its own servers

    No browser policy applies server-side. Cookies are never forwarded; anonymously only Accept, Accept-Language, If-None-Match, If-Modified-Since and Range travel upstream, so your request cannot leak browser state.

  3. Returns the answer with the right headers

    Status code, Content-Type and body come back unchanged, with Access-Control-Allow-Origin set to your exact origin. ETag, Last-Modified, Link, Retry-After and the X-RateLimit-* headers are exposed to your code.

  4. Tells you who failed

    X-Cors-Source: upstream means the API answered. X-Cors-Source: gateway plus an X-Cors-Error code means the proxy refused or could not complete the request, and X-Cors-Request-Id identifies it in support.

When a frontend needs one, and when it does not

You need a proxy when the API is not yours, sends no CORS headers, and your app has no server of its own: a static site on GitHub Pages or S3, a Chrome extension or Figma plugin, a prototype, a widget embedded in a no-code builder. You can test any URL in 10 seconds: curl -sI -H "Origin: https://example.com" <api-url> | grep -i access-control-allow-origin. No output means the browser will block a direct call.

You do not need one when the API already sends Access-Control-Allow-Origin: *: api.github.com, api.open-meteo.com and most APIs designed for browser use do, and routing them through a proxy only adds a hop and shares one IP address between all your visitors, which is how GitHub API rate limit exceeded happens. When the API is yours, add the headers on your server instead. When the request carries a secret, read managed proxy or your own backend first.

Four ways to proxy an API without running a server

All four answer with CORS headers from a server-side hop. They differ in who runs it, what the free tier covers and where a secret can live.

API proxy options for a frontend with no server, checked October 2026
Comparedcors.devCloudflare WorkerVercel FunctionNetlify Function
SetupNone: prefix the API URLWrite a Worker, deploy with WranglerAdd a file under api/ and deployAdd a file under netlify/functions/ and deploy
Free tierGET and HEAD, no signup, 600 requests per minute per IP100,000 requests per day, 10 ms CPU per requestHobby: 1,000,000 invocations per month, non-commercial use only300 credits per month; every site pauses when they run out
Paid entry$5 per month for 500,000 requests$5 per month with 10 million requests, then $0.30 per millionPro: $20 per month, includes $20 of usagePersonal: $9 per month for 1,000 credits
Request body1 MiB on Pro100 MB on the Cloudflare Free plan4.5 MB6 MB, 4.5 MB for binary
Response body6 MiBNo enforced limit4.5 MB6 MB, 20 MB streamed
Time limit30 seconds for the API to answer10 ms CPU on Free; waiting on fetch not counted300 seconds on Hobby60 seconds
Secret kept server-sideNo: forwards the Authorization your page sendsYes: wrangler secret putYes: Secret environment variablesYes: environment variables
CORS and preflightHandled; keyed requests echo the exact originYou write bothYou write bothYou write both
  • cors.dev: nothing to deploy, CORS and preflights handled. GET is free with no signup; Pro adds POST and Authorization behind a key locked to your origins. It holds no upstream secrets, so a private key for a paid service belongs in one of the other three.
  • Cloudflare Worker: the cheapest way to own the code, at 100,000 free requests a day or $5 per month for 10 million. You write the CORS headers, the OPTIONS answer and the origin check, as in Cloudflare Workers CORS.
  • Vercel Function: best when the frontend already deploys on Vercel. Hobby is for non-commercial use only, and bodies stop at 4.5 MB on every plan.
  • Netlify Function: the same for sites on Netlify. Deploys draw on the same 300 free credits, and running out pauses every site on the team.

The free tier: one prefix, no account

Anonymous requests cover GET and HEAD to any public HTTP or HTTPS host on any port. Responses up to 6 MiB come back within a 30-second upstream deadline, in any content type for browser code and in text types such as JSON, XML, HTML and CSV for requests without an Origin. Redirects are followed for up to 20 hops. Responses are passed through with Cache-Control: no-store, and there are no upstream retries, so one request on your side is one request on the API.

Before and after: the prefix is the whole change
// Fails in the browser: store.steampowered.com sends no Access-Control-Allow-Origin
const direct = await fetch('https://store.steampowered.com/api/appdetails?appids=440');

// Works: the proxy fetches it server-side and answers with the CORS headers your origin needs
const response = await fetch(
  'https://proxy.cors.dev/https://store.steampowered.com/api/appdetails?appids=440',
  { credentials: 'omit' },
);
const data = await response.json();
console.log(data['440'].data.name); // "Team Fortress 2"

Pro: write methods, Authorization and caching

A trial or Pro Connection adds POST, PUT, PATCH and DELETE, Authorization and custom headers, opt-in caching and a higher per-IP limit, behind a publishable X-Cors-Key locked to your origins and API hosts. See Authorization headers and API keys and POST, PUT, PATCH and DELETE.

Pro is $5 per month for 500,000 requests per monthly billing period, with $5 prepaid blocks of 500,000 extra requests. The trial runs 7 days with 1,000 requests total and needs no card. Every admitted request counts, including cache hits and upstream failures.

Limits and pricing

cors.dev limits per tier
LimitFree, no keyPro, $5 per month
Price$0$5 per month; 7-day trial with 1,000 requests, no card
MethodsGET and HEADGET, HEAD, POST, PUT, PATCH and DELETE
DestinationsAny public HTTP or HTTPS host, any portPublic hosts enabled on your Connection
Response size6 MiB, any content type from browser code6 MiB, any content type
Request bodyNone1 MiB
Upstream deadline30 seconds30 seconds
Rate600 requests per minute per IP1,200 requests a minute per IP
Monthly requestsNo quota500,000 per billing period, $5 per extra 500,000
Request headers forwardedAccept, Accept-Language, If-None-Match, If-Modified-Since, RangePlus Authorization and custom headers
RedirectsFollowed, up to 20 hopsFollowed, up to 20 hops; other hosts get no credential headers
CachingNone, no-storeOpt-in X-Cors-Cache, 1 to 300 seconds

Good questions.

Is an API proxy the same as a CORS proxy?

For a frontend app, yes. A CORS proxy exists to add the Access-Control-Allow-Origin header a browser needs; an API proxy that does nothing else is a CORS proxy. The difference appears when a proxy also injects secrets or transforms responses. cors.dev does neither: it forwards the headers your page sends and returns the upstream body as is. Response caching is the one opt-in extra, on Pro.

Does the proxy see my data?

Every proxy can read what passes through it, which is why the free tier never forwards cookies and refuses Authorization headers. Send public data through it. Pro forwards an explicit Authorization header for APIs that need one; it still never forwards cookies and never stores the header.

Is a Cloudflare Worker free for an API proxy?

Up to 100,000 requests a day on the Workers Free plan, with 10 ms of CPU time per request; waiting on the upstream fetch does not count. Past the limit Cloudflare returns error 1027 until the reset at midnight UTC. Workers Paid costs $5 per month with 10 million requests included.

Can I run an API proxy on the Vercel free plan?

For a personal project, yes: Hobby includes 1,000,000 function invocations and 4 active CPU-hours a month, but only for non-commercial use, and bodies are capped at 4.5 MB. Commercial projects need Pro at $20 per month.

What happens when a Netlify site runs out of free credits?

Every site on the team pauses and shows a Site not available page until the next billing cycle, and the Free plan cannot buy extra credits. Production deploys use 15 of the 300 monthly credits each.