Hi,
I have a CORS issue with the Svelte Template for App-Write
My docker-compose is OK. I access appwrite with http://localhost:8080/console
My Svelte frontend is OK http://127.0.0.1:3000/#/login
But when I tried to connect I have this issue :
Access to XMLHttpRequest at 'http://localhost:8080/v1/account/sessions/email' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: Request header field x-sdk-name is not allowed by Access-Control-Allow-Headers in preflight response.
browser-ponyfill.js:518 POST http://localhost:8080/v1/account/sessions/email net::ERR_FAILED
My .env file copied from .env.example file contain :
VITE_APP_ENDPOINT=http://localhost:8080/v1
VITE_APP_PROJECT=64c130a644bddf1a4762
VITE_APP_COLLECTION_ID=64c13113a2d097892fde
VITE_APP_DATABASE_ID=todo
And multiple _APP_..... properties
I don't understand the CORS problem 😢
**AND ** I don't know where find the DATABASE_ID . Isn't on UI
And the UI is outdated (old version of appwrite)
The link :
https://github.com/appwrite/demo-todo-with-svelte
Thanks ❤️