Browse Source

feat: Enable CORS

master
Konstantinos Kamaropoulos 5 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() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(3000); await app.listen(3000);
} }
bootstrap(); bootstrap();

Loading…
Cancel
Save