We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f45279 commit 9640f61Copy full SHA for 9640f61
netlify/functions/app/app.mjs
@@ -16,13 +16,15 @@ export default function expressApp() {
16
"https://www.herodevs.com/",
17
"https://herodevs.com/",
18
"https://hero-devs-24601.webflow.io/",
19
- "https://hd-webflow-api.netlify.app",
20
- "https://hd-webflow-api.netlify.app/"
21
];
22
23
// check origin
24
var corsOptions = {
25
origin: (origin, callback) => {
+ // No origin means request from the browser
+ if (!origin) {
26
+ callback(null, true);
27
+ }
28
if (
29
process.env.NETLIFY_DEV === "true" ||
30
allowedOrigins.includes(origin)
0 commit comments