Skip to content

Commit 9640f61

Browse files
committed
feat(): more changes
1 parent 5f45279 commit 9640f61

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: netlify/functions/app/app.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ export default function expressApp() {
1616
"https://www.herodevs.com/",
1717
"https://herodevs.com/",
1818
"https://hero-devs-24601.webflow.io/",
19-
"https://hd-webflow-api.netlify.app",
20-
"https://hd-webflow-api.netlify.app/"
2119
];
2220

2321
// check origin
2422
var corsOptions = {
2523
origin: (origin, callback) => {
24+
// No origin means request from the browser
25+
if (!origin) {
26+
callback(null, true);
27+
}
2628
if (
2729
process.env.NETLIFY_DEV === "true" ||
2830
allowedOrigins.includes(origin)

0 commit comments

Comments
 (0)