Back

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

  • 0
  • Cloud
fedros_
8 Mar, 2024, 14:05

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.

TL;DR
Developers are experiencing an issue with Appwrite showing error "Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint." Solution: Add your website as a platform under integrations.
Faye
8 Mar, 2024, 14:07

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

Faye
8 Mar, 2024, 14:08

What do you mean with that?

fedros_
8 Mar, 2024, 14:14

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.

fedros_
8 Mar, 2024, 14:14

Attaching the full console error if it helps.

Faye
8 Mar, 2024, 14:16

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?

fedros_
8 Mar, 2024, 14:18

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

Faye
8 Mar, 2024, 14:18

i don't recommend that at all

fedros_
8 Mar, 2024, 14:19

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?

fedros_
8 Mar, 2024, 14:23

So I created two platforms but still get the abovementioned error

fedros_
8 Mar, 2024, 14:23

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

fedros_
8 Mar, 2024, 14:27

Oh wow it worked on localhost. Thank you πŸ™‚ I guess it was the hostname?

fedros_
8 Mar, 2024, 14:30

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

darShan
8 Mar, 2024, 14:34

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

Faye
8 Mar, 2024, 14:35

Glad it works for you.

Happy appwriting! :appwriterocket:

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