aantakOriginal post
Web Developer
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?
Summary
Developers are inquiring about setting session cookies accessible across subdomains, in this case, a Next.js app hosted on a root domain and an Appwrite backend on a subdomain. The goal is to have the API routes access session cookies for user session verification.