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
- Appwrite Python SDK Keeps returning the ...
So I have a couple services, one is a scheduling engine responsible for fetching data from a database and launching a containerized micro service to process tha...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...