Not sure if that's necessary...if account.get() is successful, the user has a valid session. Otherwise, they don't
[SOLVED] Nuxt 3 | OAuth callback URL
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
Oh ok, I'll try, thanks for the info, I'll be back I'll try
Rank 3: Container
Rank 3: Container
I changed getSession("current") to get(), but the effect remains the same :/
You might have a problem with 3rd party cookies. Either enable 3rd party cookies or set up your app and Appwrite such that Appwrite is a subdomain of your app
Rank 3: Container
Indeed, on Chrome it works correctly, but not Firefox :/
Rank 3: Container
It's a bit complicated to put a subdomain on the same domain as "localhost" lol
Look for 3rd party cookie settings
You could update your hosts file to have a local domain
Rank 3: Container
It's actually a good idea ^^
Rank 3: Container
Well, in the end, the problem was just the cookies... Lol
Thank you for your help ^^
Rank 3: Container
Like this, is it correct?
Rank 3: Container
Do you know if there is a way to bypass the CORS error?
Rank 3: Container
Because the request is made from the Appwrite SDK, so I don't have control over the headers.
What error are you getting?
Rank 3: Container
Did you browse to Appwrite.localhost and accept the self signed certificate?
Rank 3: Container
Firefox ignores the hosts file despite the recommended settings. I will search again
Rank 3: Container
Okay good, browsers don't like domains like ".localhost"
You can use any domain since it's just local testing
Rank 3: Container
According to this answer, some local domains are not valid.
But let's move on, thanks to your solutions I was finally able to have a functional application :D
Sorry I mean use something like example.com
Rank 3: Container
Ohhh okay
Rank 3: Container
[Solved] Nuxt 3 | OAuth callback URL
Rank 3: Container
[SOLVED] Nuxt 3 | OAuth callback URL