Am trying pull data from appwrite but am getting CORs error. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cloud.appwrite.io.v1/databases/{databaseId}/collections/{collectionId}/documents. (Reason: CORS request did not succeed). Status code: (null)
how do i resolve this in react or appwrite dashboard
CORS errors when working with Appwrite can be caused by a number of reasons. Here's a list of things that you can try, and see if any of them works:
https://subdomain.example.com
, the hostname you should use is subdomain.example.com
.Make sure you try all the suggestions, and let me know if you face any issues :)