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
- Urgent help with removed databases
Hi <@564158268319203348> <@501784879638249472> I wrote to paid plan support about this but no response as of yet… About an hour ago one of the interns from o...
- proccessing problems
A database schema operation is stuck in my Frankfurt project. In the matryq database, the workspaceId attribute of the coaching_activity_entries collection rema...
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...