diff --git a/examples/http/cors/main.go b/examples/http/cors/main.go index 379a37a9c..5b61cc1e7 100644 --- a/examples/http/cors/main.go +++ b/examples/http/cors/main.go @@ -18,7 +18,7 @@ func main() { http.Address(":8000"), http.Filter(handlers.CORS( handlers.AllowedOrigins([]string{"*"}), - handlers.AllowedHeaders([]string{"GET", "POST"}), + handlers.AllowedMethods([]string{"GET", "POST"}), )), ) route := httpSrv.Route("/")