Skip to content

Commit fbc468e

Browse files
committed
Updated backend configration
1 parent 588f202 commit fbc468e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Backend/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const app = express();
44
const cors = require('cors');
55

66
const corsOptions = {
7-
origin: 'http://localhost:5173',
7+
origin: process.env.FRONT_END_URL,
88
methods: ['POST'],
99
optionsSuccessStatus: 200
1010
};

Frontend/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14-
14+
.env
1515
# Editor directories and files
1616
.vscode/*
1717
!.vscode/extensions.json

0 commit comments

Comments
 (0)