What are you doing that results in this?
Accessing Cookies from localhost
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
i trying to call the account.get() function
Rank 1: Thread
How did you initialize the client?
Rank 1: Thread
yes, when i used the https://cloud.appwrite.io/v1 endpoint it works perfectly but when i used http://appwrite.shinobi.com:3000/ it gets that error
Right...because you need the v1. What happens when you have the v1?
Rank 1: Thread
the same thing I guess it happening because the custom domain isn't verified
Rank 1: Thread
Rank 1: Thread
appwrite is still providing this endpoint
The custom domain won't verify if your domain isn't publicly accessible. It doesn't matter, though.
That will show whatever you're accessing appwrite on
Rank 1: Thread
ok
Rank 1: Thread
hey again, I managed to get a custom domain and changed the API endpoint so most of the errors went away but I'm still running into this error evertime I'm run account.get()
Rank 1: Thread
Rank 1: Thread
Wait I think its because I'm trying to access the appwrite API through localhost
Rank 1: Thread
right. it's probably a 3rd party cookie problem. either enable 3rd party cookies in your browser settings or set up a fake domain by editing your hosts file
Rank 1: Thread
after 2 days i finally got it to work🥳
Rank 1: Thread
thanks a lot for your advice and patience @Steven @kathelia.dokgu
No problem! What did you do?
Rank 1: Thread
after I set the custom domain I ran into two errors:
-
Running the client SDK on the SSR pages
-
I forgot to update the Google API console with the new Appwrite endpoints
After I did that it was just copying code from the almostSSR repo(which most of it I don't understand but it worked lol)
Rank 1: Thread
I'm going to write an article about this process in a few days
Rank 1: Thread
In the latest next 13 update
it now supports HTTPS in development
which should be helpful in testing auth locally
Rank 1: Thread
Rank 1: Thread
update: it doesn't work if you change the hostname.
The browser won't accept it for some reason