Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Luxshan2000 authored Oct 28, 2023
1 parent ce76af7 commit b5947a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const PORT = process.env.PORT || 5000

app.use(cors({
//51.20.76.107
origin:["*", "http://51.20.76.107:3000"],//"exp://192.168.8.182:8081"
origin:["*", "http://18.61.66.218:3000"],//"exp://192.168.8.182:8081"
methods:["GET","POST"],
credentials:true
}))
Expand All @@ -35,4 +35,4 @@ connectMongoDb()

app.listen(5000, () => {
console.log(`Server is running on port ${PORT}`);
});
});

0 comments on commit b5947a9

Please sign in to comment.