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.
- Takes the request from your page
The browser sends the request to
proxy.cors.devwith your pageOrigin. PreflightOPTIONSrequests are answered by the proxy itself, withAccess-Control-Max-Age: 600, so the API never sees them. - 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-SinceandRangetravel upstream, so your request cannot leak browser state. - Returns the answer with the right headers
Status code,
Content-Typeand body come back unchanged, withAccess-Control-Allow-Originset to your exact origin.ETag,Last-Modified,Link,Retry-Afterand theX-RateLimit-*headers are exposed to your code. - Tells you who failed
X-Cors-Source: upstreammeans the API answered.X-Cors-Source: gatewayplus anX-Cors-Errorcode means the proxy refused or could not complete the request, andX-Cors-Request-Ididentifies 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://. 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.
| Compared | cors.dev | Cloudflare Worker | Vercel Function | Netlify Function |
|---|---|---|---|---|
| Setup | None: prefix the API URL | Write a Worker, deploy with Wrangler | Add a file under api/ and deploy | Add a file under netlify/functions/ and deploy |
| Free tier | GET and HEAD, no signup, 600 requests per minute per IP | 100,000 requests per day, 10 ms CPU per request | Hobby: 1,000,000 invocations per month, non-commercial use only | 300 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 million | Pro: $20 per month, includes $20 of usage | Personal: $9 per month for 1,000 credits |
| Request body | 1 MiB on Pro | 100 MB on the Cloudflare Free plan | 4.5 MB | 6 MB, 4.5 MB for binary |
| Response body | 6 MiB | No enforced limit | 4.5 MB | 6 MB, 20 MB streamed |
| Time limit | 30 seconds for the API to answer | 10 ms CPU on Free; waiting on fetch not counted | 300 seconds on Hobby | 60 seconds |
| Secret kept server-side | No: forwards the Authorization your page sends | Yes: wrangler secret put | Yes: Secret environment variables | Yes: environment variables |
| CORS and preflight | Handled; keyed requests echo the exact origin | You write both | You write both | You 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.
// 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
| Limit | Free, no key | Pro, $5 per month |
|---|---|---|
| Price | $0 | $5 per month; 7-day trial with 1,000 requests, no card |
| Methods | GET and HEAD | GET, HEAD, POST, PUT, PATCH and DELETE |
| Destinations | Any public HTTP or HTTPS host, any port | Public hosts enabled on your Connection |
| Response size | 6 MiB, any content type from browser code | 6 MiB, any content type |
| Request body | None | 1 MiB |
| Upstream deadline | 30 seconds | 30 seconds |
| Rate | 600 requests per minute per IP | 1,200 requests a minute per IP |
| Monthly requests | No quota | 500,000 per billing period, $5 per extra 500,000 |
| Request headers forwarded | Accept, Accept-Language, If-None-Match, If-Modified-Since, Range | Plus Authorization and custom headers |
| Redirects | Followed, up to 20 hops | Followed, up to 20 hops; other hosts get no credential headers |
| Caching | None, no-store | Opt-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.