Skip to content

Commit

Permalink
Allow all domin2
Browse files Browse the repository at this point in the history
  • Loading branch information
devJayed committed Sep 5, 2024
1 parent 0085352 commit f6e789e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const corsOptions = {
origin: "*", // Allow ALL domains
methods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
allowedHeaders: ["Content-Type", "Authorization"], // Allowed headers
credentials: true, // Allow credentials like cookies and tokens if needed
// credentials: true, // Allow credentials like cookies and tokens if needed
};

app.use(cors(corsOptions));
Expand Down

0 comments on commit f6e789e

Please sign in to comment.