Hello,
I have the following situation. I had a website defined and deployed, deploying from github. I have accidentally deleted my github repository. I have recreated my github repository, but i could not re-link it to the existing site. I have created a new site and linked the new repository with the same name as previous. I have deployed the website. I have added the new website origin as platfom, and deleted the old ones.
------All good so far.
Now the problem is that i get cors errors when the website tries to access the database (logins, documents, etc...):
/login:1 Access to fetch at 'https://cloud.appwrite.io/v1/databases/main_database/collections/table_sessions/documents?queries%5B0%5D=%7B%22method%22%3A%22equal%22%2C%22attribute%22%3A%22status%22%2C%22values%22%3A%5B%22active%22%5D%7D&queries%5B1%5D=%7B%22method%22%3A%22lessThan%22%2C%22attribute%22%3A%22expiresAt%22%2C%22values%22%3A%5B%222025-10-08T12%3A21%3A06.048Z%22%5D%7D' from origin 'https://qr-restaurant.appwrite.network' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://localhost' that is not equal to the supplied origin. Have the server send the header with a valid value.
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...