Skip to content
Back

Appwrite Sites and localStorage Problem - Sites, Custom domains and API Endpoint

  • 0
  • Auth
  • Sites
  • Realtime
  • Cloud
Michael
30 Jul, 2025, 12:40

I'm currently struggling with the localStorage Problem and Custom Sites.

My goal is to move our Flutter Web App to Appwrite Sites. When just deploying it I'm getting the issue with localStorage when accessing the API via "https://cloud.appwrite.io/v1".

The Appwrite Site is hosted on project-workspace.appwrite.network and accessible. I thought I would have to add "api.project-workspace.appwrite.network" with a redirect to "https://cloud.appwrite.io" to the "Domains" tab in the Site in the Appwrite Console. But this leads to issues with a Certificate: "ERR_CERT_COMMON_NAME_INVALID".

What exactly do I have to do here to make the App work again?

And I'm currently still using "https://cloud.appwrite.io" in the Functions. Do I also have to change the url there?

Thanks!

TL;DR
Developers are having trouble with localStorage and custom domains when utilizing Appwrite Sites. They are encountering issues with a Certificate: "ERR_CERT_COMMON_NAME_INVALID" when adding a custom domain in the Appwrite Console. The potential solution is to ensure the domain and certificates are set up correctly. Additionally, consider updating the API endpoint in the functions to match the new Appwrite configuration.
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