Skip to content
Back

what is the best way to redirect a pretty url to a storage bucket?

  • 0
  • Web
  • Cloud
Simba
12 Aug, 2025, 17:29

I tried to do this in a function, but after redirecting to the bucket and try to play video, i get CORS error: The 'Access-Control-Allow-Origin' header has a value 'https://localhost/' that is not equal to the supplied origin. Origin is from my app so this is a bit off.

TL;DR
Developers are trying to redirect a pretty URL to a storage bucket, but face a CORS error due to mismatched origins. The 'Access-Control-Allow-Origin' header value needs to match the app's origin for smooth operation.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more