diff --git a/example/main.go b/example/main.go index 5707641..b2f5dc6 100644 --- a/example/main.go +++ b/example/main.go @@ -34,7 +34,8 @@ func runApp(host string) { // h: handler, // } //}), - http.Middleware(cors.Cors()), + http.Middleware( + cors.Cors(cors.WithHeader("Content-Type,X-Requested-With,Access-Control-Allow-Credentials,User-Agent,Content-Length,Authorization,token"))), ) route := hs.Route("/") route.POST("/api/v1/answer/addQuestion", func(ctx http.Context) error {