{"id":22514966,"url":"https://github.com/en9inerd/cors-proxy","last_synced_at":"2025-08-03T16:31:34.853Z","repository":{"id":157681088,"uuid":"628166556","full_name":"en9inerd/cors-proxy","owner":"en9inerd","description":"CORS proxy based on Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2024-03-07T20:43:24.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-07T21:40:58.280Z","etag":null,"topics":["cloudflare","cloudflare-workers","cors","proxy","service-worker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/en9inerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-04-15T05:25:27.000Z","updated_at":"2023-12-11T19:17:27.000Z","dependencies_parsed_at":"2024-03-07T21:48:18.710Z","dependency_job_id":null,"html_url":"https://github.com/en9inerd/cors-proxy","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/en9inerd%2Fcors-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fcors-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fcors-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/en9inerd%2Fcors-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/en9inerd","download_url":"https://codeload.github.com/en9inerd/cors-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228556191,"owners_count":17936433,"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","cloudflare-workers","cors","proxy","service-worker"],"created_at":"2024-12-07T03:27:11.951Z","updated_at":"2024-12-07T03:27:12.587Z","avatar_url":"https://github.com/en9inerd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple CORS proxy based on Cloudflare Workers\n\nProblem statement is described in [this blog post](https://enginerd.io/2023/04/17/cors-proxy/).\n\n## Worker deployment\n\n1. Install Wrangler.\n2. Authenticate with your Cloudflare account using `wrangler login`.\n3. Update `wrangler.toml` with your event name and webhook key.\n4. (Optional) Include allowed origins in the whitelist by updating the `index.ts` file. Add regular expressions for desired origins to the `whitelist` array using the format: `const whitelist: RegExp[] = [/origin1.com/, /.*\\.example\\.com/];`\n5. Deploy the worker using `wrangler deploy`.\n\n## Usage\n\n```typescript\nfetch(\"https://cors-proxy.workers.dev/?apiUrl=https://api.ipify.org?format=json\").then(response =\u003e {\n  return response.json();\n}).then(data =\u003e {\n  console.log(data);\n});\n```\n\nwhere `https://api.ipify.org?format=json` is the URL you want to fetch and `https://cors-proxy.workers.dev` is the URL of your deployed worker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen9inerd%2Fcors-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fen9inerd%2Fcors-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen9inerd%2Fcors-proxy/lists"}