fix: Electron HTTP fix + stripped background fix
This commit is contained in:
1 parent
994d00e91f
commit
a52a5217bf
11 files changed
+128
-26
No files matched your search
@@ -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