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:
parent
43b3ebb89d
commit
21a729bc3a
@ -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("/")
|
||||
|
Loading…
x
Reference in New Issue
Block a user