Skip to content
Back

custom domain failing

  • 0
  • Auth
  • Web
  • Cloud
  • REST API
Yuzu
9 Aug, 2025, 03:39

I have an appwrite app at a subdomain myapp.topdomain.com. I want to configure the appwrite endpoint to use a 2nd level subdomain e.g. api.myapp.topdomain.com. I have configured my dns to point to fr.cloud.appwrite.io/v1 but adding the custom domain fails. Is there any possible reason why?

In addition, I want to check that my hostname is set as *.myapp.com and this should work? In my code I will change the APPWRITE_ENDPOINT from fr.cloud.appwrite.io/v1 to api.myapp.topdomain.com. Is that all the changes that needs to be done?

This is because previously sometimes browsers block 3rd party cookies which caused google auth to fail

TL;DR
Developers are having trouble adding a custom domain to their Appwrite app. They want to use a 2nd level subdomain and have configured DNS to point to the correct endpoint. To fix this, check DNS settings, ensure the hostname is set correctly, and update the APPWRITE_ENDPOINT in the code. This should resolve browser cookie issues.
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