Skip to content
Snippets Groups Projects
Commit 017e2d08 authored by Lukáš Kratochvíl's avatar Lukáš Kratochvíl
Browse files

fix: enabling CORS

parent 93a4e54f
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,8 @@ import { PrismaClientExceptionFilter } from './prisma/prisma-client-exception.fi
async function bootstrap(): Promise<void> {
const app = await NestFactory.create(AppModule);
const configService = app.get(ConfigService);
const cors = require('cors');
app.use(cors());
app.enableCors();
app.useGlobalPipes(
new ValidationPipe({
......
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