fix(examples/cors): method misuse (#1184)

pull/1186/head
miya 3 years ago committed by GitHub
parent 43b3ebb89d
commit 21a729bc3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/http/cors/main.go

@ -18,7 +18,7 @@ func main() {
http.Address(":8000"), http.Address(":8000"),
http.Filter(handlers.CORS( http.Filter(handlers.CORS(
handlers.AllowedOrigins([]string{"*"}), handlers.AllowedOrigins([]string{"*"}),
handlers.AllowedHeaders([]string{"GET", "POST"}), handlers.AllowedMethods([]string{"GET", "POST"}),
)), )),
) )
route := httpSrv.Route("/") route := httpSrv.Route("/")

Loading…
Cancel
Save