diff --git a/examples/server.go b/examples/server.go index d5e5a45..453420a 100644 --- a/examples/server.go +++ b/examples/server.go @@ -10,7 +10,7 @@ import ( func main() { ctx := context.Background() - c := cors_fasthttp.New(ctx, cors_fasthttp.CorsOptions{}) + c := cors_fasthttp.AllowAll(ctx) fasthttp.ListenAndServe(":8080", c.Handler(Handler)) }