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
- type generation on same columns in table
is there way to prevent this ? or only need to update column name like table prefix?
- Unable to send verification email
Hi! I’m trying to access my project on Appwrite Cloud (fra.cloud.appwrite.io), but I keep getting this popup saying: “To continue using Appwrite Cloud, please...
- Converting circularstructure to JSON
Hello 👋, when this will be fixed on Appwrite Sites? It's draining our quotas for Sentry, it must be a problem with the default logger which is always on for Ap...