
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
- Appwrite custom domain verification fail...
So I've left enough time for the records to propagate and I've tried adding in a subdomain for the appwrite endpoint so as not to cause a clash with two CNAME r...
- Error: Invalid `userId` param: Parameter...
- Appwrite error handling
Is this a good way to handle appwrite errors in nextjs server action ??
