Skip to content
Back

getFilePreview CORS Error but Database and Account access working fine

  • 0
  • Self Hosted
  • Web
Matthias Merk
3 Jun, 2025, 08:47

Hi, I just noticed, that images i get using getFilePreview form Appwrite 1.6.2 (self hosted) are not shown anymore. I get "Response was blocked by CORB (Cross-Origin Read Blocking)".

I also noticed, that in the response headers for the getFilePreviewRequest, Access-Control-Allow-Origin is set to https://localhost. All other request (Database, Account etc.) have the right url there and are working as they should.

Everything in the App seems to work.... Exept the Images...

Any Idea what i should check or do?

When i try to shutdown Appwrite I get the following error: failed to remove network appwrite: Error response from daemon: error while removing network: network appwrite has active endpoints (, , , , , , , , )

TL;DR
Issue with Appwrite 1.6.2 showing CORS error for getFilePreview, while Database and Account access works fine. Response blocked by CORB. Access-Control-Allow-Origin set to incorrect URL. App shutting down due to active endpoints in network. Solution: Check and correct Access-Control-Allow-Origin URL for getFilePreview request.
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