Skip to content

Commit

Permalink
Merge pull request #5 from petergeorgas/pgeorgas/CORS
Browse files Browse the repository at this point in the history
Update CORS
  • Loading branch information
petergeorgas authored Jan 31, 2024
2 parents 851eb56 + fae9a12 commit 07ef837
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-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,
Expand Down

0 comments on commit 07ef837

Please sign in to comment.