Back

Showing appwrite login page

  • 0
  • Web
  • General
  • Cloud
  • Self Hosted
  • REST API
AmirFt04
2 Oct, 2024, 05:11

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.

TL;DR
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
2 Oct, 2024, 22:06

that's kind of how custom domain or CNAMEs work. your custom domain == cloud.appwrite.io 🧐

AmirFt04
2 Oct, 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
2 Oct, 2024, 22:43

sorry i don't understand

itsfuad
4 Oct, 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.

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