Skip to content
Back

How to set wildcard at custom doamin

  • 0
  • Auth
  • Web
  • Cloud
金智秀
7 Jun, 2025, 11:29

For OAuth2 redirect, I have set the appwrite api endpoint as appwrite.example.com, and added the CANME in cloudfare where I bought the domain name. And I hosted my frontend project at vercel using www.example.com. When redirecting, I got error for invalid url as appwrite only allow to redirect to appwrite.example.com. How can I make appwrite to allow redirect to www.example.com

TL;DR
Developers are setting up OAuth2 redirect with Appwrite at appwrite.example.com and a frontend project on Vercel at www.example.com. Getting an error due to Appwrite only allowing redirects to appwrite.example.com. Solution: Add a wildcard CNAME record in Cloudflare to allow redirects to any subdomain under example.com.
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