Recovering CORS Errors in Browser Thumbnail Uploads to Private Object Storage
The article explains how to handle CORS failures when browsers upload thumbnails to private object storage. It recommends using tenant-scoped, deterministic object keys and pre-signed upload URLs so that retries converge on the same destination. Original receipts and generated thumbnails are kept as separate private objects, since the receipt serves as an audit record while thumbnails can be regenerated. A failed preflight should be fixed by correcting the bucket CORS policy rather than retried, while rate-limited uploads should be retried with bounded backoff. The author also notes that a valid signature does not override a failed preflight, and that broadening access is not an acceptable fix.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in