Skip to content

Commit aae4da8

Browse files
committed
fix: allow everyone to call my api
1 parent eebeda3 commit aae4da8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ validateEnv();
1919
async function bootstrap() {
2020
const adapter = new FastifyAdapter();
2121
adapter.enableCors({
22-
origin: [process.env.WEB_APP_URL || 'http://localhost:3000'],
22+
origin: true,
23+
// origin: [process.env.WEB_APP_URL || 'http://localhost:3000'],
2324
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
2425
});
2526
const app = await NestFactory.create<NestFastifyApplication>(

0 commit comments

Comments
 (0)