{"agent":"claude","input":"Add CORS to this Fiber v3 API. Read go.mod, app.go, handlers/handlers.go, database/database.go, models/user.go, static/public/js/app.js, README.md, .golangci.yml and the workflows under .github/workflows first. Use the cors middleware from github.com/gofiber/fiber/v3/middleware/cors. Add an -origins flag, comma-separated, with a CORS_ORIGINS environment variable fallback, validate each origin as a scheme and host and exit with a clear message on a bad one, and mount the middleware on the /api/v1 group only, with explicit AllowOrigins, AllowHeaders, AllowMethods and a MaxAge, never with a wildcard and credentials together; when no origin is configured do not mount it, since an empty AllowOrigins allows every origin. Move router construction into a newApp function so it can be tested. Write tests with app.Test for an allowed preflight, a GET from a non-listed origin receiving no allow-origin header, the static route receiving no CORS headers, and the unconfigured case, plus a table test for the origin parser. Run go vet, go test -race and golangci-lint, start the server and curl a preflight, document the flag and variable in the README, and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}