Skip to content

Commit 147f30b

Browse files
committed
logging for CORS
1 parent 9b42702 commit 147f30b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

backend/env.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"http://localhost:5050",
1616
"http://localhost:5050/",
1717
"http://localhost:4040",
18-
"http://localhost:4040/"
18+
"http://localhost:4040/",
19+
"*"
1920
]
2021
},
2122
"MONGO_USERNAME": {

backend/src/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ async function main() {
2121
origin: env.ALLOWED_ORIGIN
2222
};
2323

24+
console.log("CORS OPTIONS: " + JSON.stringify(options))
25+
2426
app.use(bodyParser.urlencoded({ extended: false }));
2527
app.use(cors(options));
2628
app.use('/doctorOrders', doctorOrders);

0 commit comments

Comments
 (0)