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
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- after using the coding agents its code b...
can anybody suggest me an ai tool that i can use to create the system desgins without the suggestion things because it at last create a mess
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...