Skip to content

Commit

Permalink
Removed unnecessary CORS domains
Browse files Browse the repository at this point in the history
  • Loading branch information
petergeorgas committed Jan 31, 2024
1 parent c1568b6 commit fae9a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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*.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,
Expand Down

0 comments on commit fae9a12

Please sign in to comment.