@everyone
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
Votes
0
Replies
24
Participants
4
Messages
25
@everyone
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?
Rank 1: Thread
Nothing stored
Rank 1: Thread
Originally was api.cloud.example.com and app.example.com
But tested with api.app.examole.com and still doesn't work
Rank 1: Thread
i have since updated to 1.8.0 and issue still persists
I'm not sure, @Steven 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>"}'Rank 1: Thread
Rank 1: Thread
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
Rank 1: Thread
everything works fine in localhost and when using the ip of my dev web server, only doesnt work when on prod with cloudflare pages
Rank 1: Thread
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
Rank 1: Thread
could this be an issue with nginx proxy manager
Rank 1: Thread
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.
Rank 1: Thread
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?
Rank 1: Thread
tried all that
make sure you're forwarding to Appwrite using HTTPS