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
- Cant configure email templates
i configure it on the console, and when i send the OTP, it sends with appwrite's email (instead of custom smtp) and with the branding, but i have the Pro (educa...
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?