1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

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

This commit is contained in:
miya
2021-07-14 13:05:15 +08:00
committed by GitHub
parent 43b3ebb89d
commit 21a729bc3a
+1 -1
View File
@@ -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("/")