{"id":32117192,"url":"https://github.com/httpland/cors","last_synced_at":"2026-02-18T23:02:48.685Z","repository":{"id":55132711,"uuid":"522907623","full_name":"httpland/cors","owner":"httpland","description":"CORS protocol utility for standard Request and Response","archived":false,"fork":false,"pushed_at":"2023-02-14T07:03:13.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-07T16:00:30.640Z","etag":null,"topics":["cors","http","preflight","request","response","utility"],"latest_commit_sha":null,"homepage":"https://deno.land/x/cors_protocol","language":null,"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/httpland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2022-08-09T10:46:08.000Z","updated_at":"2023-02-14T07:42:06.000Z","dependencies_parsed_at":"2022-08-14T13:00:28.135Z","dependency_job_id":null,"html_url":"https://github.com/httpland/cors","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/httpland/cors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fcors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fcors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fcors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fcors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httpland","download_url":"https://codeload.github.com/httpland/cors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpland%2Fcors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29597854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cors","http","preflight","request","response","utility"],"created_at":"2025-10-20T16:29:39.829Z","updated_at":"2026-02-18T23:02:48.680Z","avatar_url":"https://github.com/httpland.png","language":null,"readme":"# cors\n\nCORS protocol for standard `Request` and `Response`.\n\n## Usage\n\ncore:\n\n- `withCors` - Create a handler that supports the CORS protocol.\n\nbasic:\n\n```ts\nimport { withCors } from \"https://deno.land/x/cors_protocol@$VERSION/mod.ts\";\nimport { Handler, serve } from \"https://deno.land/std@$VERSION/http/mod.ts\";\n\nfunction handler(req: Request): Response {\n  return new Response(\"Hello\");\n}\n\nawait serve(withCors(handler));\n```\n\nthen, The endpoint support simple request and preflight request.\n\n## License\n\nCopyright © 2022-present [httpland](https://github.com/httpland).\n\nReleased under the [MIT](./LICENSE) license\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpland%2Fcors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttpland%2Fcors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpland%2Fcors/lists"}