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
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...