diff --git a/go.work b/go.work index 357baa37..dd2da0a1 100644 --- a/go.work +++ b/go.work @@ -1,12 +1,13 @@ -go 1.22.2 +go 1.22.4 use ( . ./cmd/fuego + ./examples/acme-tls ./examples/basic ./examples/custom-serializer ./examples/full-app-gourmet ./examples/hello-world ./examples/openapi - ./examples/acme-tls + ./testing-from-outside ) diff --git a/serve_test.go b/serve_test.go index 40c4d59d..2e147d12 100644 --- a/serve_test.go +++ b/serve_test.go @@ -19,7 +19,6 @@ import ( "testing" "time" - "github.com/rs/cors" "github.com/stretchr/testify/require" ) @@ -392,10 +391,6 @@ func TestServer_Run(t *testing.T) { t.Run("can run server", func(t *testing.T) { s := NewServer( WithoutLogger(), - WithCorsMiddleware(cors.New(cors.Options{ - AllowedOrigins: []string{"*"}, - AllowedMethods: []string{"GET"}, - }).Handler), ) Get(s, "/test", func(ctx *ContextNoBody) (string, error) {