Skip to content

armgit / ente

Public Imported from GitHub
0

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

[workers] Ignore case when comparing allowed headers

Manav Rathi9f5115cc0862
diff --git a/infra/workers/uploader/src/index.ts b/infra/workers/uploader/src/index.ts
index d94aeb048c..8f7ac2e387 100644
--- a/infra/workers/uploader/src/index.ts
+++ b/infra/workers/uploader/src/index.ts
@@ -58,7 +58,7 @@ const isAllowedOrigin = (origin: string | null) => {
};
const areAllowedHeaders = (headers: string | null) => {
- const allowed = ["Content-Type", "UPLOAD-URL", "X-Client-Package"];
+ const allowed = ["content-type", "upload-url", "x-client-package"];
if (!headers) return true;
for (const header of headers.split(",")) {