Skip to content
Snippets Groups Projects
Commit 4f4bdb9c authored by Martin Korec's avatar Martin Korec
Browse files

fix: add cors

parent 23d7b1a4
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@ 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.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