diff --git a/server.go b/server.go index 3745e2c..58b7230 100644 --- a/server.go +++ b/server.go @@ -31,7 +31,7 @@ func main() { srv := handler.NewDefaultServer(generated.NewExecutableSchema(generated.Config{Resolvers: resv})) cors := cors.New(cors.Options{ - AllowedOrigins: []string{"http://192.168.1.239", "http://192.168.1.239:3000", "http://localhost", "http://localhost:3000", "https://apptrack-phi.vercel.app", "https://apptrack-178utrkn2-petergeorgas.vercel.app"}, + AllowedOrigins: []string{"http://localhost*", "https://apptrack*.vercel.app"}, AllowedHeaders: []string{"*"}, AllowedMethods: []string{"GET", "PUT", "POST", "OPTIONS"}, AllowCredentials: true,