Browse Source

feat: Enable CORS

master
Konstantinos Kamaropoulos 4 years ago
parent
commit
e45565d45e
  1. 1
      src/main.ts

1
src/main.ts

@ -3,6 +3,7 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(3000);
}
bootstrap();

Loading…
Cancel
Save