1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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("/")