Skip to content

Commit 6d5101b

Browse files
committed
fix: route
1 parent bbdc395 commit 6d5101b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ const port = process.env.PORT;
1515

1616
app.use(bodyParser.json());
1717
app.use(bodyParser.urlencoded({ extended: true }));
18-
app.use(cors(
19-
{
20-
origin: 'http://localhost',
21-
},
22-
));
18+
app.use(cors({ origin: 'http://localhost:3000' }));
2319

2420
router.get('/', (req, res) => {
2521
res.send('Welcome to the TalentEase API');

0 commit comments

Comments
 (0)