When I set custom domain to my appwrite, and I send an api request from website, server api directing me to the appwrite login page. Is there a way to prevent this? I mean when user want to see where the request sending, not see appwrite login page.
Summary
Developers are unable to customize the Appwrite login page when using a custom domain due to the nature of CNAMEs. It will always direct to the Appwrite login page. To bypass this and prevent users from seeing the Appwrite login page, you would need to write a backend to connect to the cloud and send API requests from the client to that server.
Steven
Oct 2, 2024, 22:06
that's kind of how custom domain or CNAMEs work. your custom domain == cloud.appwrite.io 🧐
AmirFt04
Rank 2: Process
Oct 2, 2024, 22:12
I mean is there any way to not let this happen? Because in this case I need to write backend and connect that to cloud and send api requests from client to that server. For example when we entered the custom domain its not show the cloud login page, is it possible?
Steven
Oct 2, 2024, 22:43
sorry i don't understand
itsfuad
Oct 4, 2024, 16:38
No its not possible. A domain will resolve to its assigned target. In simple tersm, you've just set an alias for the cloud.appwrite.io domain. So anything requested to your domain or appwrite's domain will show the same page.