Skip to content

Commit

Permalink
chore: update Cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuuzy committed Jul 30, 2024
1 parent ed56865 commit f1b447c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
const corsOptions: CorsOptions = {
origin: ['http://localhost:3000', 'https://explorer.rgbpp.io'],
methods: ['GET', 'POST', 'PUT', 'DELETE','OPTIONS',],
allowedHeaders: ['*'],
exposedHeaders: ['*'],
credentials: true,
};
app.enableCors(corsOptions);
app.enableCors();
await app.listen(3000);
}
bootstrap();

0 comments on commit f1b447c

Please sign in to comment.