Skip to content

Commit

Permalink
allow frontend cors on backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadi2000 committed Oct 31, 2023
1 parent ab1aaa1 commit 772aae3
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"],
origin: ["http://18.61.20.118:3000", "http://18.61.20.118:3001","*","http://18.61.20.118", "https://drivesmart-w549.onrender.com"],
methods: ["POST", "GET"],
credentials: true,
})
Expand Down

0 comments on commit 772aae3

Please sign in to comment.