So I've swapped from hard-coded variables with my self-hosted instance endpoint for example to env variables as I wanted to deploy to prod. After doing this suddenly I can still reach my login page but cant login with essentially two errors in the browser console and none in my container:
Access to XMLHttpRequest at 'https://appwrite.roehrdanz.cloud/v1/account/sessions/email' from origin 'https://webtool.roehrdanz.cloud' 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.
and
Uncaught (in promise) AppwriteException: Network request failed
at c.<anonymous> (https://webtool.roehrdanz.cloud/_next/static/chunks/658-aeff67198c3f381b.js:1:15174)
at Generator.throw (<anonymous>)
at a (https://webtool.roehrdanz.cloud/_next/static/chunks/658-aeff67198c3f381b.js:1:8601)
This probably isnt related to my env variables because when testing locally they work flawlessly. I've also moved to a bare-metal server. This server is proxmox virtualized and is running 2 VMs: one with appwrite and another with some deployments including this nextJS webapp. Is there maybe something configured wrongly in the nextjs container?
Recommended threads
- Next.js Middleware does not work with "n...
I use the "node-appwrite" in the Middleware to verify the user session in SSR, in local it works, but when i deploy the project to Vercel, the deployment fail b...
- ENDPOINT ERROR 404
I need help please with the ENDPOINT indicated in the appwrite documentation, I can't access https://cloud.appwrite.io/v1 { “message”: “The requested path w...
- can someone explain the custom domain is...