Skip to content

Commit

Permalink
update cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahimvse committed Mar 29, 2024
1 parent 512d9b7 commit c4844dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({
origin: ['http://localhost:4200','https://www.cve.live/'],
origin: ['http://localhost:4200','https://www.cve.live','https://cve.live'],
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
allowedHeaders: 'Content-Type, Accept',
})
Expand Down

0 comments on commit c4844dd

Please sign in to comment.