Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cors from 'cors';
- import express from 'express';
- const app = express();
- app.use(cors());
- app.get('/', (req, res) => res.send({ hello: 'world' }));
- app.listen(3000, () => console.log('Example app listening on port 3000!'));
Add Comment
Please, Sign In to add comment