Heyo!
Does anyone have a valid way of being able to support both SSR and CSR? For example, what if I want to do account.get() on a client sided page, following the tutorial on the docs will show a 401 on CSR, but 200 on SSR.
The web sdk client creates cookies on the domain where the API is located (for example cloud.appwrite.io), but not on the domain itself. This is fine, but if you sign in via SSR, the cookies will not exist on that domain and so the CSR side will not work. Any idea how to support both? π€
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...