Skip to content
Snippets Groups Projects
Commit e7687d51 authored by Alexey Lunin's avatar Alexey Lunin
Browse files

enable cors

parent cf85422c
No related branches found
No related tags found
No related merge requests found
Pipeline #67252 passed with stage
in 1 minute and 51 seconds
......@@ -17,6 +17,7 @@ import * as fs from "fs";
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
app.useWebSocketAdapter(new WsAdapter(app));
const configService = app.get(ConfigService);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment