{"agent":"codex","input":"Add CORS to this Gin API and open a pull request. Read go.mod, hello.go, users/middlewares.go, users/routers.go, common/database.go, common/unit_test.go, scripts/gofmt.sh, scripts/coverage.sh, scripts/run-api-tests.sh, .golangci.yml, .github/workflows/ci.yml, readme.md and AGENTS.md first. Add github.com/gin-contrib/cors to go.mod. Add common.CORSConfig() that returns a cors.Config with AllowOrigins from a comma-separated CORS_ALLOWED_ORIGINS environment variable, no origins when it is empty, AllowMethods GET, POST, PUT, DELETE and OPTIONS, AllowHeaders including Authorization and Content-Type, and AllowCredentials false. Register cors.New(common.CORSConfig()) as the first middleware on the router in hello.go, before the /api group and the ping group. Add common/cors_test.go using httptest and testify as common/unit_test.go does: a preflight OPTIONS /api/articles from an allowed origin requesting the Authorization header answers 204 with the matching allow-origin and allow-headers, the same from another origin gets no allow-origin header, and GET /api/ping/ from an allowed origin gets the allow-origin header on its 200. Run scripts/gofmt.sh, scripts/coverage.sh, golangci-lint run and scripts/run-api-tests.sh, paste the output in the pull request, document CORS_ALLOWED_ORIGINS in readme.md and add the middleware to AGENTS.md. Do not change any route, model or the auth middleware.","resources":[{"url":"https://github.com/your-org/your-app"}]}