{"id":50771,"library":"go-chi-cors","title":"Chi CORS","description":"A net/http handler to handle CORS related requests as defined by the W3C specification.","status":"active","version":"1.2.2","language":"go","source_language":null,"source_url":"https://github.com/go-chi/cors","tags":["cors","http","middleware","chi"],"install":[{"cmd":"go get github.com/go-chi/cors","lang":"bash","label":"Install github.com/go-chi/cors"}],"dependencies":[],"imports":[{"symbol":"cors","correct":"github.com/go-chi/cors"}],"quickstart":{"code":"package main\n\nimport (\n    \"net/http\"\n    \"github.com/go-chi/cors\"\n)\n\nfunc main() {\n    r := http.NewServeMux()\n    handler := cors.Handler(cors.Options{\n        AllowedOrigins: []string{\"https://example.com\"},\n    })(r)\n    http.ListenAndServe(\":8080\", handler)\n}","lang":"go","description":"Create a CORS handler wrapping an existing HTTP handler."},"warnings":[],"env_vars":null,"search_vec":"'chi':1,20 'cor':2,8,17 'defin':12 'handl':7 'handler':5 'http':18 'middlewar':19 'net/http':4 'relat':9 'request':10 'specif':16 'w3c':15","created_at":"2026-06-15T05:09:09.533358+00:00","updated_at":"2026-06-15T05:09:09.533358+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-chi/cors","github":"https://github.com/go-chi/cors","docs":"https://pkg.go.dev/github.com/go-chi/cors#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}