
When using appwrite cloud with web- to get cookies set to work(due to origin issues), I had to:
- You have to use custom domains.
- You can’t point domain.com to appwrite cloud api - because I can’t create CNAME @- so, I had to create api.domain.com.
- Then I had to set my web to web.api.domain.com. - to allow it to accept .api.domain.com. Cookies.
Is there an alternative solution?

so the appwrite endpoint hostname needs to be a subdomain of your app. For example, if your app runs on my-app.com, you can use api.my-app.com for Appwrite.
For more info, see https://appwrite.io/docs/custom-domains

When I do that, following the docs, the cookies get set with a domain of .api.my-app.com. However the web browser at my-app.com wouldn’t use them and shows this when inspecting the cookies.


and you're accessing your app at apinative.com?

Exactly

where are you seeing this?

maybe clear your cookies and try again?

seems to work fine for me

Thank you, it seems I had an issue with my browsers.

[SOLVED] Appwrite Cloud for web - cookie setting issues
Recommended threads
- Building of functions not working anymor...
Function deployments get stuck on "waiting" for a long time, then on "building", then the build logs show an internal server error (500) before ultimately faili...
- Appwrite SSR Google OAuth (Invalid Redir...
I was following the documentation till here: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-7#oauth-form Getting 301 err, I tried creating a new proje...
- I am using hostinger DNS or appwrite DNS
I have a domain purchased on hostinger. I am also using their email hosting so there are DNS records for the email that are important. appwrite sites wants me t...
