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
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...