Skip to content
Back

Sharing cookies

  • 1
  • Web
  • Cloud
aantak
3 Jul, 2025, 19:26

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?

TL;DR
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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more