We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9640f61 commit f4efd7bCopy full SHA for f4efd7b
netlify/functions/app/app.mjs
@@ -24,14 +24,13 @@ export default function expressApp() {
24
// No origin means request from the browser
25
if (!origin) {
26
callback(null, true);
27
- }
28
- if (
+ } else if (
29
process.env.NETLIFY_DEV === "true" ||
30
allowedOrigins.includes(origin)
31
) {
32
33
} else {
34
- callback(new Error("Not allowed by CORS: " + origin));
+ callback(new Error("Not allowed by CORS: "));
35
}
36
},
37
optionsSuccessStatus: 200,
0 commit comments