Skip to content

Commit

Permalink
change cors allowed hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadi2000 committed Nov 1, 2023
1 parent 0263a83 commit 9d1f217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const PORT = process.env.PORT || 5000;

app.use(
cors({
origin: ["http://18.61.20.118:3000", "http://18.61.20.118:3001","*","http://18.61.20.118", "https://drivesmart-w549.onrender.com/","http://drivesmart.tracktechlk.com","http://localhost:3000"],
origin: ["http://18.61.20.118:3000", "http://18.61.20.118:3001","*","http://18.61.20.118", "https://drivesmart-w549.onrender.com","http://drivesmart.tracktechlk.com","http://localhost:3000"],
methods: ["POST", "GET"],
credentials: true,
})
Expand Down

0 comments on commit 9d1f217

Please sign in to comment.