π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
docs: mention checksum headers in upload cors
Neeraj Gupta037611bfbe44
diff --git a/docs/docs/self-hosting/administration/object-storage.md b/docs/docs/self-hosting/administration/object-storage.mdindex f41315e07c..c479294234 100644--- a/docs/docs/self-hosting/administration/object-storage.md+++ b/docs/docs/self-hosting/administration/object-storage.md@@ -115,6 +115,16 @@ Use the content provided below for creating a `cors.json` file:You may have to change the `AllowedOrigins` to allow only certain origins (yourEnte web apps and Museum) for security.+::: note++Newer Ente builds include a `Content-MD5` header on upload requests (and `UPLOAD-URL`+when routing through the upload worker). If your provider requires an explicit+allow list instead of `["*"]`, make sure these headers are present in+`AllowedHeaders`, otherwise preflight checks will fail, and uploads will be+blocked.++:::+Assuming you have AWS CLI on your system and that you have configured it withyour access key and secret, you can execute the below command to set bucketCORS. Make sure to enter the right path for the `cors.json` file.diff --git a/docs/docs/self-hosting/troubleshooting/uploads.md b/docs/docs/self-hosting/troubleshooting/uploads.mdindex d1d77118e6..c77b71eece 100644--- a/docs/docs/self-hosting/troubleshooting/uploads.md+++ b/docs/docs/self-hosting/troubleshooting/uploads.md@@ -31,8 +31,9 @@ This could be because1. The bucket CORS rules do not allow museum to access these objects. Foruploading files from the browser, you will need to set `allowedOrigins` to- `*`, and allow the `X-Auth-Token`, `X-Client-Package`, `X-Client-Version`- headers configuration too.+ `*`, and allow the `X-Auth-Token`, `X-Client-Package`, `X-Client-Version`,+ `UPLOAD-URL`, and `Content-MD5` headers configuration too. The new checksum+ header is required by recent builds to verify uploads.[Here is an example of a working configuration](https://github.com/ente-io/ente/discussions/1764#discussioncomment-9478204).2. The credentials are not being picked up (you might be setting the correct