So I am hosting an appwrite instance via docker myself, I have added the website as a platform in the dashboard and also added the respective hostname to be enabled (localhost). Nevertheless it still gives me the following error, when trying to call Appwrite via my web app:
Access to XMLHttpRequest at 'http://127.0.0.1/v1/account' from origin 'http://localhost:5173' has been blocked by CORS policy: Request header field x-sdk-name is not allowed by Access-Control-Allow-Headers in preflight response.
The web app is written in SvelteKit and I am using the web SDK by appwrite in order to access my appwrite instance.
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...