it appears with my app hosted on Cloudflare worker pages, when i try to login it does not save the session cookie. however it saves in on localhost and no problems there
Version 1.7.4 self hosted
Do you see a session in your local storage? Naming similar to a_session_<PROJECT_ID>
Does the domain your app use have the same root as your appwrite instance?
Nothing stored
Originally was api.cloud.example.com and app.example.com But tested with api.app.examole.com and still doesn't work
i have since updated to 1.8.0 and issue still persists
I'm not sure, <@462046107556511744> would you have any insight?
Same problem for me. I use Appwrite at aw.domain.com and run the site via test.com. The whole thing works without any problems on the desktop and it also works on the Android phone under Chrome. But as soon as I use incognito mode or another phone, no cookie is saved, even though it is present in the response from the /callback.
This means you are always guided through the auth process (through the programming on my side). The whole thing is very strange
Can you inspect the response headers of the create email password session call and share the details?
Test against api.app.example.com
and I just tested against a self-hosted 1.8.0 using curl and I see the response header as expected:
the command:
curl -i -H 'X-Appwrite-Project: <PROJECT_ID>' -H 'Content-Type: application/json' https://<ENDPOINT>/account/sessions/email -d '{"email": "<EMAIL>", "password": "<PASSWORD>"}'
corrected domain to the one you wanted me to run
so it looks like the cookie is being returned in the header as expected. as well as the fallback cookie
so everything looks fine on Appwrite side
everything works fine in localhost and when using the ip of my dev web server, only doesnt work when on prod with cloudflare pages
so did some more testing, only doesnt work when it has an actual domain, ips work fine no matter where i put it
but as soon as i have it use a domain, it breaks
could this be an issue with nginx proxy manager
all domain are under integrations
Do you have the website on the ip and Appwrite via a domain then? I think, I had the problem the same way.
so appwrite is on api.cloud.example.com and app on any domain ive tested doesnt work but on any ip it works
appwrite is being a NPM proxy app with a domain has been behind a NPM or cloudflare proxy
Yep... Same here. What about different browsers and between desktop and mobile?
tried all that
make sure you're forwarding to Appwrite using HTTPS
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...