fix: Electron HTTP fix + stripped background fix
This commit is contained in:
@@ -65,7 +65,11 @@ app.use(
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(null, true);
|
||||
if (origin.startsWith("http://")) {
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(new Error("Not allowed by CORS"));
|
||||
},
|
||||
credentials: true,
|
||||
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
||||
|
||||
@@ -603,7 +603,11 @@ app.use(
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(null, true);
|
||||
if (origin.startsWith("http://")) {
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(new Error("Not allowed by CORS"));
|
||||
},
|
||||
credentials: true,
|
||||
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
|
||||
|
||||
@@ -41,7 +41,11 @@ app.use(
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(null, true);
|
||||
if (origin.startsWith("http://")) {
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(new Error("Not allowed by CORS"));
|
||||
},
|
||||
credentials: true,
|
||||
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
||||
|
||||
Reference in New Issue
Block a user