Skip to content

armgit / ente

Public Imported from GitHub
0

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

Whitelist the necessary one

Manav Rathibfcd84c94000
diff --git a/infra/workers/uploader/src/index.ts b/infra/workers/uploader/src/index.ts
index 9dd2a073f6..3cc2fe8b31 100644
--- a/infra/workers/uploader/src/index.ts
+++ b/infra/workers/uploader/src/index.ts
@@ -29,7 +29,7 @@ const handleOPTIONS = (request: Request) => {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, PUT, OPTIONS",
"Access-Control-Max-Age": "86400",
- // "Access-Control-Allow-Headers": "X-Auth-Token, X-Client-Package",
+ // "Access-Control-Allow-Headers": "UPLOAD-URL",
"Access-Control-Allow-Headers": "*",
"Access-Control-Expose-Headers": "X-Request-ID, CF-Ray",
},
@@ -56,7 +56,7 @@ const isAllowedOrigin = (origin: string | null) => {
};
const areAllowedHeaders = (headers: string | null) => {
- const allowed = ["x-auth-token", "x-client-package"];
+ const allowed = ["UPLOAD-URL"];
if (!headers) return true;
for (const header of headers.split(",")) {