We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 874de9c commit 055aed9Copy full SHA for 055aed9
packages/bytebotd/src/main.ts
@@ -5,6 +5,14 @@ import * as express from 'express';
5
6
async function bootstrap() {
7
const app = await NestFactory.create(AppModule);
8
+
9
+ // Enable CORS
10
+ app.enableCors({
11
+ origin: '*',
12
+ methods: ['GET', 'POST'],
13
+ credentials: true,
14
+ });
15
16
const wsProxy = createProxyMiddleware({
17
target: 'http://localhost:6080',
18
ws: true,
0 commit comments