Web Developer
Hi! i am new to react and i am making a movie web app as a first project (learning while doing so i barely know stuff now) I've been struggling with CORS errors for hours and tried everything. Here's what's happening:
Timeline of Issues:
- Initial Problem (Anonymous Sessions): Access to fetch at 'https://cloud.appwrite.io/v1/account/sessions/anonymous'
from origin 'http://localhost:5173' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
i tried everything:
Added Web platform with hostname: localhost as i cant include port number (localhost:5173)
Tried also the * in host name but nothing worked
All platforms show as enabled (green toggle)
all the ids are correct and matching
Still getting CORS errors
so i switched to email/password authentication:
but same thing Access to fetch at 'https://cloud.appwrite.io/v1/account'
from origin 'http://localhost:5173' has been blocked by CORS policy
been trying for hours so if anyone can help it will be so appreciated, thanks for listening.