adrianhajdin / social_media_app

Build a modern social app with a stunning UI with a native mobile feel, a special tech stack, an infinite scroll feature, and amazing performance using React JS, Appwrite, TypeScript, and more.
https://jsmastery.pro
1.06k stars 310 forks source link

The error states "Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://localhost:5173/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." #54

Closed Samrudh713 closed 2 months ago

Samrudh713 commented 2 months ago

I'm getting the CORS policy error despite setting the endpoint to https://cloud.appwrite.io/v1. Please help. The error states "Access to XMLHttpRequest at 'https://cloud.appwrite.io/v1/account' from origin 'http://localhost:5173/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." My output:

Screenshot 2024-04-07 at 4 56 59 AM

Expected output as shown in the video

Screenshot 2024-04-07 at 5 13 56 AM
Murtaza-5253 commented 2 months ago

how did you solve it please help

Samrudh713 commented 2 months ago

how did you solve it please help

check this video out

https://youtu.be/oEpRh9H5l5g?si=MO4k29ChakH3Nnws