fix: Electron HTTP fix + stripped background fix
This commit is contained in:
@@ -68,6 +68,10 @@ app.use(
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
if (origin.startsWith("http://")) {
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
callback(new Error("Not allowed by CORS"));
|
||||
},
|
||||
credentials: true,
|
||||
|
||||
Reference in New Issue
Block a user