{"id":13483084,"url":"https://github.com/Zibri/cloudflare-cors-anywhere","last_synced_at":"2025-03-27T13:33:33.754Z","repository":{"id":40323188,"uuid":"196958068","full_name":"Zibri/cloudflare-cors-anywhere","owner":"Zibri","description":"CORS \"anywhere\" proxy in a Cloudflare worker. DEMO at: https://test.cors.workers.dev/","archived":false,"fork":false,"pushed_at":"2024-05-24T20:24:09.000Z","size":53,"stargazers_count":663,"open_issues_count":7,"forks_count":250,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-25T04:51:22.054Z","etag":null,"topics":["cloudflare","cors","fastest","free","proxy"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zibri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-15T08:33:36.000Z","updated_at":"2024-10-24T13:52:58.000Z","dependencies_parsed_at":"2024-04-24T05:33:08.440Z","dependency_job_id":"6438c833-60b6-48b8-bba3-6453a0a402ac","html_url":"https://github.com/Zibri/cloudflare-cors-anywhere","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zibri%2Fcloudflare-cors-anywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zibri%2Fcloudflare-cors-anywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zibri%2Fcloudflare-cors-anywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zibri%2Fcloudflare-cors-anywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zibri","download_url":"https://codeload.github.com/Zibri/cloudflare-cors-anywhere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222262668,"owners_count":16957621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cors","fastest","free","proxy"],"created_at":"2024-07-31T17:01:08.114Z","updated_at":"2024-10-30T16:32:03.935Z","avatar_url":"https://github.com/Zibri.png","language":"JavaScript","funding_links":["https://paypal.me/Zibri/5"],"categories":["JavaScript"],"sub_categories":[],"readme":"# cloudflare-cors-anywhere\nCloudflare CORS proxy in a worker.\n\nCLOUDFLARE-CORS-ANYWHERE\n\nSource:\nhttps://github.com/Zibri/cloudflare-cors-anywhere\n\nDemo:\nhttps://test.cors.workers.dev\n\nDonate:\nhttps://paypal.me/Zibri/5\n\nPost:\nhttp://www.zibri.org/2019/07/your-own-cors-anywhere-proxy-on.html\n\n## Deployment\n\nThis project is written in [Cloudfalre Workers](https://workers.cloudflare.com/), and can be easily deployed with [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/install-and-update/).\n\n```bash\nwrangler publish\n```\n\n## Usage Example\n\n```javascript\nfetch('https://test.cors.workers.dev/?https://httpbin.org/post', {\n  method: 'post',\n  headers: {\n    'x-foo': 'bar',\n    'x-bar': 'foo',\n    'x-cors-headers': JSON.stringify({\n      // allows to send forbidden headers\n      // https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name\n      'cookies': 'x=123'\n    }) \n  }\n}).then(res =\u003e {\n  // allows to read all headers (even forbidden headers like set-cookies)\n  const headers = JSON.parse(res.headers.get('cors-received-headers'))\n  console.log(headers)\n  return res.json()\n}).then(console.log)\n```\n\nNote:\n\nAll received headers are also returned in \"cors-received-headers\" header.\n\nNote about the DEMO url:\n\nAbuse (other than testing) of the demo will result in a ban.  \nThe demo accepts only fetch and xmlhttprequest.  \n\nTo create your own is very easy, you just need to set up a cloudflare account and upload the worker code.  \n\nMy personal thanks to Damien Collis for his generous and unique donation.    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZibri%2Fcloudflare-cors-anywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZibri%2Fcloudflare-cors-anywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZibri%2Fcloudflare-cors-anywhere/lists"}