Fix : add cors

This commit is contained in:
2024-06-12 07:37:52 -04:00
parent e18343ee93
commit fe3748eb53
+1 -1
View File
@@ -6,7 +6,7 @@ import MongoStore from 'connect-mongo';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({ origin: 'http://localhost:3000', credentials: true });
const config = new DocumentBuilder()
.setTitle('Heron Game')
.setDescription('Heron')