Appwrite is using localStorage for session management. Increase your security by adding a custom do
- 0
- Cloud

Hello, My website worked fine and the connection with the appwrite database was working perfectly but when I deployed my website I have recently started getting errors on my localhost as well as my domain. I have used a * wildcard and stopped receiving the CORS errors, however I am receiving this error now: [Warning] Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.
I didnt need to add a custom domain in the past, but I have recently deployed my website on vercel. My custom domain with my website were verified, but I cant access appwrite from localhost nor my domain.
Can someone please help me? Thank You in advance.

Could you reprase "but I can't access appwrite from localhost nor my domain"?

What do you mean with that?


Hello thank you for the quick response. So I keep receiving this error on my console when I try to make a database query from my localhost: Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.
What custom domain am I to add for my localhost? I have a verified custom domain which links back to my nameserver but it wont let me access my database either.

Attaching the full console error if it helps.

The custom domain is optional, but neccessary if you use a domain, however that has nothing to do with your current error in the console.
For the cookies/session keys: Add your website as a platform under overview -> integrations -> platforms For your error, are you signed in and do you have the collection permission set up correctly?

It already exists as a platform with a hostname a wildcard *

i don't recommend that at all

It was me trying to get it to work tbh. But I agree will change. So I will have two platforms one localhost and for my my nameserver correct?

So I created two platforms but still get the abovementioned error

I believe I have the correct collection permission. I didnt have a problem with it before and it started happening out of the blue when I deployed it on vercel. But the strange thing is, I also get the error on localhost

Oh wow it worked on localhost. Thank you 🙂 I guess it was the hostname?

It worked on my nameserver too. Very grateful for your help.

If the issue is resolved, please mark the title as [SOLVED].

Glad it works for you.
Happy appwriting! :appwriterocket:
Recommended threads
- Stuck at pinging the server to finish ad...
I'm not using the starter app and I'm not sure how to finish connecting my app to Appwrite.io. Is there a CURL command I can run to finish setup?
- 500 internal error
I get a 500 internal error when trying to access my database on appwrite cloud. Sometimes it would start working but this time it never corrects.
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
