Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathi720e84ba1f21
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index a14fb5d79f..a8c94aa309 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -113,6 +113,7 @@ const setupRendererServer = () => serveNextAt(rendererURL);
const registerPrivilegedSchemes = () => {
protocol.registerSchemesAsPrivileged([
{
+ // Taken verbatim from next-electron-server's code (index.js)
scheme: "ente",
privileges: {
standard: true,
@@ -125,14 +126,15 @@ const registerPrivilegedSchemes = () => {
{
scheme: "stream",
privileges: {
- // standard: true,
+ // TODO(MR): Remove the commented bits if we don't end up
+ // needing them by the time the IPC refactoring is done.
+
+ // Prevent the insecure origin issues when fetching this
// secure: true,
- // supportFetchAPI: true,
- standard: true,
- secure: true,
- allowServiceWorkers: true,
+ // Allow the web fetch API in the renderer to use this scheme.
supportFetchAPI: true,
- corsEnabled: true,
+ // Allow it to be used with video tags.
+ // stream: true,
},
},
]);