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

6 messages · Page 1 of 1 (latest)

mint kestrel
#

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!

scarlet topaz
#

cc @slender quail if this is something you are familiar with since you are currently working on expanding documentation in this area 🙂

slender quail
mint kestrel
#

Thanks so far, it's definitely also possible that I'm still doing something wrong.
But as I understand it, the problem with the localStorage is, that the website is accessing two different domains and we need to resolve that by forwarding from a subdomain

So creating a api. subdomain that forwards to cloud.appwrite.io would be the correct strategy here, right?

mint kestrel
#

Ping

tough jasper