wanderer-moe / site

⚙ The frontend of https://wanderer.moe/ — built with NextJS, TailwindCSS & shadcn/ui
https://wanderer.moe/
38 stars 0 forks source link

downloading multiple files won't work as intended dependant on request origin #222

Closed dromzeh closed 1 year ago

dromzeh commented 1 year ago

Downloading multiple files from R2 buckets does not function as intended unless the files are downloaded from wanderer.moe or its respective subdomains.

This is caused by the CORS rules configured for the R2 bucket, restricting requests to be made exclusively to wanderer.moe or its respective subdomains.

Downloading files from the R2 bucket shouldn't be restricted to a specific origin & should allow downloading from anywhere, considering the API allows for this.

Workaround is to host the API yourself w/ a R2 bucket that has different CORS configuration rules.

dromzeh commented 1 year ago

fixed