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
- After assigning a domain to my Dart func...
I’ve attached the images. Could anyone please explain how this execution is being performed?
- Provider not enabled in Dotnet project
# Bug Report: Appwrite .NET SDK `CreateOAuth2Token` → `project_provider_disabled` ## Issue Using **Appwrite .NET SDK (v3.1.0)**, `CreateOAuth2Token` for Googl...
- Stuck on project restoration after inact...
Hey there! My project was paused due to inactivity today. I tried to restore it, but it's completely stuck on the restoration process. Could someone please tak...