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
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...