Skip to content

Commit d8260f1

Browse files
committed
cors
1 parent 84f3efc commit d8260f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

http-backend/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import { projectRouter } from './router/project';
44
import { prismaClient } from './db';
55

66
const app = express();
7-
app.use(express.json())
87
app.use(cors({
98
origin: '*',
109
methods: ['GET', 'POST'],
1110
allowedHeaders: ['Content-Type']
12-
}));
11+
}));
12+
13+
app.use(express.json())
1314

1415
app.get('/', (req, res) => {
1516
res.send('Hello from express');

0 commit comments

Comments
 (0)