CloudFlare CORS Proxy

Cloudflare CORS proxy in a worker.

[WARNING]: This is not a public proxy, please host on your own servers!

This project is written for CloudFlare Workers, and can be easily deployed with Wrangler CLI.

wrangler publish

Usage Example

fetch(`https://{your-name}.workers.dev/?${encodeURIComponent('https://httpbin.org/anything')}`, {
  method: 'post',
  headers: {
    Authorization: 'Bearer Foo'
  }
}).then(res => {
  console.log(res.headers)
  return res.json()
}).then(console.log)