Skip to content

armgit / ente

Public Imported from GitHub
0

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

Partially revert 699a12cc793e4ab59144310d86a47794c36b80c1

Manav Rathi1c59a36c73b1
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index a8a8a56101..3d7dfc417a 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -15,11 +15,7 @@ import { existsSync } from "node:fs";
import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";
-import {
- addAllowOriginHeader,
- handleDownloads,
- handleExternalLinks,
-} from "./main/init";
+import { handleDownloads, handleExternalLinks } from "./main/init";
import { attachFSWatchIPCHandlers, attachIPCHandlers } from "./main/ipc";
import log, { initLogging } from "./main/log";
import { createApplicationMenu, createTrayContextMenu } from "./main/menu";
@@ -349,7 +345,11 @@ const main = () => {
registerStreamProtocol();
handleDownloads(mainWindow);
handleExternalLinks(mainWindow);
- addAllowOriginHeader(mainWindow);
+ // TODO(MR): Remove or resurrect
+ // The commit that introduced this header override had the message
+ // "fix cors issue for uploads". Not sure what that means, so disabling
+ // it for now to see why exactly this is required.
+ // addAllowOriginHeader(mainWindow);
// Start loading the renderer
mainWindow.loadURL(rendererURL);
diff --git a/web/apps/photos/src/utils/native-stream.ts b/web/apps/photos/src/utils/native-stream.ts
index 83824e7a9f..66d63cc6a4 100644
--- a/web/apps/photos/src/utils/native-stream.ts
+++ b/web/apps/photos/src/utils/native-stream.ts
@@ -39,6 +39,7 @@ export const readStream = async (
});
const res = await fetch(req);
+ console.log(Object.fromEntries(res.headers.entries()));
if (!res.ok)
throw new Error(
`Failed to read stream from ${path}: HTTP ${res.status}`,