{"id":21372334,"url":"https://github.com/jhsc/gin-cors","last_synced_at":"2026-05-20T03:32:16.818Z","repository":{"id":57507355,"uuid":"118197751","full_name":"jhsc/gin-cors","owner":"jhsc","description":"CORS middleware for Gin","archived":false,"fork":false,"pushed_at":"2018-02-06T06:23:45.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T21:13:49.115Z","etag":null,"topics":["gin","gin-middleware","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jhsc.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":null,"support":null}},"created_at":"2018-01-20T01:35:36.000Z","updated_at":"2018-01-20T01:52:55.000Z","dependencies_parsed_at":"2022-09-26T18:20:51.588Z","dependency_job_id":null,"html_url":"https://github.com/jhsc/gin-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/jhsc%2Fgin-cors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhsc%2Fgin-cors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhsc%2Fgin-cors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhsc%2Fgin-cors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhsc","download_url":"https://codeload.github.com/jhsc/gin-cors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846979,"owners_count":20357297,"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":["gin","gin-middleware","golang"],"created_at":"2024-11-22T08:19:14.445Z","updated_at":"2026-05-20T03:32:16.773Z","avatar_url":"https://github.com/jhsc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gin-cors\n\nCORS middleware for Gin.\n\n## Installation\nDownload and install:\n```sh\n$ go get github.com/jhsc/gin-cors\n```\n\nImport it in your code:\n\n```go\nimport \"github.com/jhsc/gin-cors\"\n```\n\n### Example:\n```go\nimport (\n    \"github.com/gin-gonic/gin\"\n    \"github.com/jhsc/gin-cors\"\n)\n\nfunc main(){\n    g := gin.New()\n    g.Use(cors.Middleware(cors.Options{\n      AllowOrigins: []string{\"http://test.com\"},\n    }))\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhsc%2Fgin-cors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhsc%2Fgin-cors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhsc%2Fgin-cors/lists"}