We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b42702 commit 147f30bCopy full SHA for 147f30b
2 files changed
backend/env.json
@@ -15,7 +15,8 @@
15
"http://localhost:5050",
16
"http://localhost:5050/",
17
"http://localhost:4040",
18
- "http://localhost:4040/"
+ "http://localhost:4040/",
19
+ "*"
20
]
21
},
22
"MONGO_USERNAME": {
backend/src/server.ts
@@ -21,6 +21,8 @@ async function main() {
origin: env.ALLOWED_ORIGIN
};
23
24
+ console.log("CORS OPTIONS: " + JSON.stringify(options))
25
+
26
app.use(bodyParser.urlencoded({ extended: false }));
27
app.use(cors(options));
28
app.use('/doctorOrders', doctorOrders);
0 commit comments