Spaces:
Running
Running
Commit History
-
feat: add /mirror CORS pass-through for object storage
jiayi.xieSigned OSS/R2 URLs serve bytes without Access-Control-Allow-Origin, so a browser cannot read a generated video into IndexedDB and the canvas ends up holding only a link that dies when the signature expires. /mirror fetches the URL server-side and streams it back with open CORS. It stores nothing, so a Space restart cannot lose mirrored data. Requests are limited to MIRROR_ALLOW_HOSTS suffixes and MIRROR_MAX_BYTES.f721a91