and the X-Fallback-Cookies cookie is actually missing from the email login POST request.
You mean the response headers?
Votes
0
Replies
24
Participants
Unknown
Messages
25
and the X-Fallback-Cookies cookie is actually missing from the email login POST request.
You mean the response headers?
Rank 1: Thread
yes, in the response
Rank 1: Thread
For the frontend app I use appsmith, I don't remember if it uses SSR or CSR
ok. well the x-fallback-cookies are a fallback anyways...primary place for the session is cookie
can you check the network logs for the get account api call?
to see if the cookie is being included?
Rank 1: Thread
request info and response header
you might have to switch to the cookies tab
Rank 1: Thread
under development tools -> Application -> Cookies -> app.domain?
Rank 1: Thread
under network there's not cookie tab
btw, with nginx, are you making sure to forward to Appwrite via HTTPS and forward the host header?
you should 🧐
Rank 1: Thread
I'll send you the configuration for appwrite
for the create email session, are you seeing the cookie get returned?
Rank 1: Thread
server { listen 443 ssl; server_name auth.domain.com;
ssl_certificate /etc/nginx/ssl/domain_com_2023.crt; ssl_certificate_key /etc/nginx/ssl/domain_com_2023.key;
location / {
proxy_pass https://appwrite-traefik/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_buffering off; proxy_redirect off; } }kk this should be good
Rank 1: Thread
email request
ya...the cookie should be returned....
Rank 1: Thread
account request
something is weird with your server/appwrite instance...this should include the set-cookie response header
Rank 1: Thread
Is there a way to figure out what's wrong?
Did you configure your _APP_DOMAIN env var?
Rank 1: Thread
I'm going to check
Rank 1: Thread
yep
Rank 1: Thread
but it's strange, because using the frontend app locally and connecting to auth.domain.com everything works correctly, the cookie is passed