Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and API routes are hosted on the root domain (e.g., example.com).
I’d like to know if it’s possible for Appwrite Cloud to set session cookies with a domain like .example.com, so that they are accessible across subdomains — including both the frontend and my Next.js API routes.
Specifically, I want my Next.js API routes to have access to the Appwrite session cookie in order to verify the user's session.
Is this even supported?
Recommended threads
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- ACTIVATE DEPLOYMENT PROBLEM...
It's not giving me the option to activate a deployment that says it's ready..
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.