and the X-Fallback-Cookies cookie is actually missing from the email login POST request.
You mean the response headers?
yes, in the response
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?
request info and response header
you might have to switch to the cookies tab
under development tools -> Application -> Cookies -> app.domain?
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 🧐
I'll send you the configuration for appwrite
for the create email session, are you seeing the cookie get returned?
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
email request
ya...the cookie should be returned....
account request
something is weird with your server/appwrite instance...this should include the set-cookie response header
Is there a way to figure out what's wrong?
Did you configure your _APP_DOMAIN env var?
I'm going to check
yep
but it's strange, because using the frontend app locally and connecting to auth.domain.com everything works correctly, the cookie is passed
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...