I am using the SSR guide (with SvelteKit) to use Appwrite on both the server and the client.
I do this by also passing the cookie back to the client and creating a separate Client on the client. This enables features like realtime and (supposedly) storage.
The problem is, that when I use the image preview API (storage.getFilePreview) the image won't load because Appwrite returns a 401.
So, the problem is Appwrite doesn't get any authentication. I figured out that this happens because logging in on the client side sets a cookie on the region.cloud.appwrite.io domain, while my own cookie is on my server, so Appwrite won't see it.
Is there a way to make sure Appwrite is able to see any of my authentication cookies? I would really appreciate the help, because this is a bottleneck which may cause us to stop using Appwrite.
Recommended threads
- Added Custom Domain - API requests with ...
I've added in a custom domain to Appwrite my domain itself is on cloudflare but has Appwrite name servers added and confirmed they work, I added the CAA in clou...
- Table contents missing (attributes+rows)
Here is an image of the cloud and the attributes that should exist Some of the table do have the data but others dont. I am able to access the rows via api c...
- Bug Report: type generation for enum of ...
### π Reproduction steps in the enum element value, instead of English, use another language (Khmer), in my case Khmer text. ``` export enum ProvinceType { ...