{"id":16995678,"url":"https://github.com/ducdev/fetch-no-cors","last_synced_at":"2025-09-12T20:34:14.340Z","repository":{"id":57148985,"uuid":"352264266","full_name":"ducdev/fetch-no-cors","owner":"ducdev","description":"Bypass CORS for browser's Fetch API","archived":false,"fork":false,"pushed_at":"2021-03-29T16:11:12.000Z","size":42,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T14:22:21.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ducdev.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}},"created_at":"2021-03-28T07:08:00.000Z","updated_at":"2023-01-06T05:54:16.000Z","dependencies_parsed_at":"2022-09-06T00:02:51.391Z","dependency_job_id":null,"html_url":"https://github.com/ducdev/fetch-no-cors","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/ducdev%2Ffetch-no-cors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducdev%2Ffetch-no-cors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducdev%2Ffetch-no-cors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducdev%2Ffetch-no-cors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducdev","download_url":"https://codeload.github.com/ducdev/fetch-no-cors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525162,"owners_count":21118617,"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":[],"created_at":"2024-10-14T03:49:34.261Z","updated_at":"2025-04-12T05:40:49.720Z","avatar_url":"https://github.com/ducdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fetch No CORS\n\nBypass CORS for browser's Fetch API using https://github.com/Rob--W/cors-anywhere\n\n1. Installation\n\nnpm:\n```\nnpm i fetch-no-cors\n```\n\nyarn:\n\n```\nyarn add fetch-no-cors\n```\n\n2. Use\n\nIt's exactly like how we use the original `fetch`, you can either use it with await/async:\n```\nimport fetchNoCors from \"fetch-no-cors\"\n\n// You need to setup your own cors-anywhere proxy instance using https://github.com/Rob--W/cors-anywhere\nconst CORS_ANYWHERE = \"https://my-own-cors-anywhere-proxy.com\"\nconst foo = async (url, options, CORS_ANYWHERE) =\u003e {\n  const res = await fetchNoCors(url, options)\n  console.log(res)\n}\n```\n\nor:\n\n```\nfetchNoCors(url, options, CORS_ANYWHERE)\n  .then(res =\u003e console.log(res))\n  .catch(err =\u003e console.error(err))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducdev%2Ffetch-no-cors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducdev%2Ffetch-no-cors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducdev%2Ffetch-no-cors/lists"}