π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[workers] Ignore case when comparing allowed headers
Manav Rathi9f5115cc0862
diff --git a/infra/workers/uploader/src/index.ts b/infra/workers/uploader/src/index.tsindex 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(",")) {