Skip to content

Commit 3b80481

Browse files
committed
Update CORS configuration for Vercel domain
1 parent 599f830 commit 3b80481

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/src/server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ const app = express();
6161

6262
// Configure CORS
6363
app.use(cors({
64-
origin: ['https://portfolio-tracker-hackstyx.vercel.app', 'http://localhost:5173'],
64+
origin: [
65+
'https://portfolio-tracker-sage.vercel.app',
66+
'https://portfolio-tracker-hackstyx.vercel.app',
67+
'http://localhost:5173'
68+
],
6569
methods: ['GET', 'POST', 'PUT', 'DELETE'],
6670
allowedHeaders: ['Content-Type', 'Authorization']
6771
}));

0 commit comments

Comments
 (0)