From 21a729bc3ac02b3266b4599ece8760d4b9cec19e Mon Sep 17 00:00:00 2001 From: miya Date: Wed, 14 Jul 2021 13:05:15 +0800 Subject: [PATCH] fix(examples/cors): method misuse (#1184) --- examples/http/cors/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("/")