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.