Skip to content

Commit f4efd7b

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ export default function expressApp() {
2424
// No origin means request from the browser
2525
if (!origin) {
2626
callback(null, true);
27-
}
28-
if (
27+
} else if (
2928
process.env.NETLIFY_DEV === "true" ||
3029
allowedOrigins.includes(origin)
3130
) {
3231
callback(null, true);
3332
} else {
34-
callback(new Error("Not allowed by CORS: " + origin));
33+
callback(new Error("Not allowed by CORS: "));
3534
}
3635
},
3736
optionsSuccessStatus: 200,

0 commit comments

Comments
 (0)