Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update CORS headers to include Content-MD5

Neeraje12c1dc9f952
diff --git a/infra/workers/uploader/src/index.ts b/infra/workers/uploader/src/index.ts
index 1549e3b477..c3962218d6 100644
--- a/infra/workers/uploader/src/index.ts
+++ b/infra/workers/uploader/src/index.ts
@@ -49,7 +49,7 @@ const handleOPTIONS = (request: Request) => {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, PUT, OPTIONS",
"Access-Control-Allow-Headers":
- "Content-Type, UPLOAD-URL, X-Client-Package, X-Client-Version",
+ "Content-Type, Content-MD5, UPLOAD-URL, X-Client-Package, X-Client-Version",
"Access-Control-Expose-Headers": "X-Request-Id, CF-Ray",
"Access-Control-Max-Age": "86400",
},