
Hello, I am developing a Nuxt application locally with the Web SDK
. After loggin in I can see the cookies disappear when i refresh the page the middleware kicks me out from the protected routes 😂
As there's no domain for the app, I can't use Appwrite Cloud domains here's what I tried:
1 - I moved the stuff to my home server and tunnel it with Cloudflare tunnels. so the url looks like this https://subdomain.example.com
2 - Edit my computer (osx) hosts file so Nuxt can use the same domain so the url looks like this http://example.com:5002
3 - Modified the selfhosted instance of appwrite apps to accept connections from example.com
4 - I disabled Chrome's securitry
Still the same behaviour :/ any guidance on what to do next??
Thanks 🙂

Cookies are tied to the domain, not your app. Go to your appwrite instance and look at the cookies. You'll see the browser does have the cookie.
If you're using SSR, most likely, your back end doesn't have the users cookie/session

Thank you @Steven I know the cookies are tied to the domain, that;s why I modified my hosts file, when I access Nuxt has the same domian as my slefhosted instance.

Nuxt -> http://my-app.com Appwrite -> https://subdomain.my-app.com

And I am using web SKD the login and middleware are client. I will try to change the to SPA mode and see what happens
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Domain Verification failed
I think i did the step by step well but just not work. When I enter the page I have this error: `Requested host does not match any Subject Alternative Names (S...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
