Fix : add cors
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user