Back

Appwrite is using localStorage for session management

  • 0
  • Cloud
Samuel Kings
27 Feb, 2024, 01:25

I created a custom domain on Appwrite Cloud console but I still get the message "Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint." whenever I authenticate a user.

I came by an issue someone raised who had this same problem and they got it fixed by creating a subdomain for their hostname. However, this doesn't work for me. In fact, after cretaing a subdomain, it's impossible for me to add a CNAME record afterwards.

Is there something I'm not getting? Thanks

TL;DR
Developers having issues adding a custom domain on Appwrite Cloud due to errors with CNAME records on cPanel. The solution involves creating a subdomain with the same host name as the CNAME, pointing it to cloud.appwrite.io, and checking DNS provider documentation for guidance.
Steven
27 Feb, 2024, 01:26

What exactly happens when you try to add a custom domain? And is this on Appwrite cloud?

Samuel Kings
27 Feb, 2024, 01:29

The domain does not verify. The error I get is not on Appwrite Cloud but on my cPanel. You know I need to add the CNAME record for Appwrite to verfiy the domain, but i get "The DNS zone file is invalid."

Steven
27 Feb, 2024, 01:31

I meant are you using Appwrite cloud or are you self hosting?

If you're having trouble adding a cname in your DNS provider, you'll need to look at the docs for your DNS provider

Samuel Kings
27 Feb, 2024, 01:32

Appwrite Cloud

Steven
27 Feb, 2024, 01:33

And so just to clarify, you're supposed to be creating a subdomain like appwrite.yourapp.com and pointing that subdomain to cloud.appwrite.io

Samuel Kings
27 Feb, 2024, 01:35

I already created the subdomain. But trying to point it to cloud.appwrite.io is where the problem is for me. It's not accepting my CNAME record

Samuel Kings
27 Feb, 2024, 01:35

I already contacted the support of my provider

Steven
27 Feb, 2024, 01:40

If you created the subdomain already, it should already be pointed to Appwrite 🧐

Steven
27 Feb, 2024, 01:40

If you browse to the subdomain you created, what do you see?

Samuel Kings
27 Feb, 2024, 01:47

Initially, I added a CNAME record, then I saw that Appwrite was still logging that same warning message. Then I found the post where the solution said to create a subdomain.

On my cPanel, to create a subdomain with the same host name, I needed to first delete the CNAME record, else I couldn't create the subdomain. So, I deleted it and now after creating the subdomain, I can no longer add a CNAME record to it because of that error

Steven
27 Feb, 2024, 01:48

I have no idea what you're saying

Steven
27 Feb, 2024, 01:49

It would help if you shared exact details

Samuel Kings
27 Feb, 2024, 01:57

I've been helped to solve it

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