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
@@ -37,7 +37,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"],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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