Skip to content

Commit

Permalink
cros fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iprime2 committed Sep 30, 2024
1 parent dae1d05 commit 39c20c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function bootstrap() {

// Enable CORS with specific options
app.enableCors({
origin: 'http://localhost:3000', // Allow requests from this origin
origin: ['http://localhost:3000', 'https://visitor-management-hazel.vercel.app'], // Allow requests from this origin
credentials: true, // Allow sending cookies (if needed)
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS',
allowedHeaders: 'Content-Type, Authorization',
Expand Down

0 comments on commit 39c20c0

Please sign in to comment.