Skip to content

Commit 055aed9

Browse files
committed
Update main.ts
1 parent 874de9c commit 055aed9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/bytebotd/src/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ import * as express from 'express';
55

66
async function bootstrap() {
77
const app = await NestFactory.create(AppModule);
8+
9+
// Enable CORS
10+
app.enableCors({
11+
origin: '*',
12+
methods: ['GET', 'POST'],
13+
credentials: true,
14+
});
15+
816
const wsProxy = createProxyMiddleware({
917
target: 'http://localhost:6080',
1018
ws: true,

0 commit comments

Comments
 (0)