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
- Project is currently blocked
When accessing the Appwrite console, I receive the message: "Project is currently blocked. Access to this project is restricted. Contact support if the issue pe...
- Does 1.9.0 Self Hosted have MongoDB Atla...
I have been playing with the new 1.9.0 update and I am really excited for the MongoDB support. I wanted to ask though if at the current time Appwrite supports b...
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...