{"id":21117181,"url":"https://github.com/hezhii/cross-domain-example","last_synced_at":"2025-07-18T10:08:01.626Z","repository":{"id":91197187,"uuid":"102728769","full_name":"hezhii/cross-domain-example","owner":"hezhii","description":"A example of the CORS on Node.js","archived":false,"fork":false,"pushed_at":"2017-09-07T11:26:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T12:31:52.352Z","etag":null,"topics":["cors","nodejs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/hezhii.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,"publiccode":null,"codemeta":null}},"created_at":"2017-09-07T11:24:38.000Z","updated_at":"2017-09-08T10:18:11.000Z","dependencies_parsed_at":"2023-06-29T03:16:28.166Z","dependency_job_id":null,"html_url":"https://github.com/hezhii/cross-domain-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hezhii/cross-domain-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fcross-domain-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fcross-domain-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fcross-domain-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fcross-domain-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hezhii","download_url":"https://codeload.github.com/hezhii/cross-domain-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Fcross-domain-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265738510,"owners_count":23820165,"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":["cors","nodejs"],"created_at":"2024-11-20T02:39:46.841Z","updated_at":"2025-07-18T10:08:01.600Z","avatar_url":"https://github.com/hezhii.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nodes.js 跨域\n\n利用 CORS 实现的一个跨域的例子。\n\n## 如何运行\n\n将仓库克隆到本地，并安装需要的依赖，然后启动服务即可。\n\n```bash\n$ git clone https://github.com/hezhii/cross-domain-example.git\n$ cd cross-domain-example\n$ npm install\n$ npm start\n```\n\n启动服务后访问：`localhost:8081`。在页面上分别点击三个按钮可以测试 GET、POST 跨域以及跨域不成功的情况。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Fcross-domain-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhezhii%2Fcross-domain-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Fcross-domain-example/lists"}