Back

CORS Blocking DB fetch

  • 0
  • Self Hosted
LiamBMX
21 Feb, 2025, 07:13

Access to fetch at 'https://cloud.mindbloomapp.com/v1/databases/6690622800253f723a68/collections/6692c45800189536494b/documents?queries%5B0%5D=%7B%22method%22%3A%22equal%22%2C%22attribute%22%3A%22ownerId%22%2C%22values%22%3A%5B%22668fdaab9eb9f50594ea%22%5D%7D&queries%5B1%5D=%7B%22method%22%3A%22limit%22%2C%22values%22%3A%5B25%5D%7D&queries%5B2%5D=%7B%22method%22%3A%22offset%22%2C%22values%22%3A%5B0%5D%7D' from origin 'https://mindbloomapp.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I have * set as the allowed url in the dashboard seemingly allowing every connection for development so Im unsure as th where this issue is coming from. Im using a NGINX reverse proxy for appwrite if that effects anything, I can send the config If needed.

TL;DR
Developers are facing a CORS issue while trying to fetch data from a specific URL. Despite setting the allowed URL in the dashboard, requests are being blocked due to a lack of 'Access-Control-Allow-Origin' header. This issue might be related to NGINX reverse proxy for appwrite. To resolve this, ensure the correct headers are set in the response or consider setting the request's mode to 'no-cors' for opaque responses.
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