π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Whitelist the necessary one
Manav Rathibfcd84c94000
diff --git a/infra/workers/uploader/src/index.ts b/infra/workers/uploader/src/index.tsindex 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(",")) {