
I am currently implementing AppWrite Cloud to use with NextJs 14. Current status: I can log-in and persist user with domain by passing back the cookie through NextJS API (server-side proxy for authentication).
I would like to add "user-agent" and IP to record full session forward.
const clientIP = request.headers.get('x-forwarded-for') || request.headers.get('cf-connecting-ip') || 'unknown';```
What should be the header key to pass on REST api call? I look for the documentation and also JS SDK yet no luck. May I ask your a little guidance please?

User Agent would be User-agent:
, wouldn’t it?

And you can’t just tell an upstream server that your IP is something different to what it actually is. If you were self-hosting Appwrite, you could configure it to accept your X-Forwarded-For
header. But allowing that on Cloud would be a tremendous security risk.
Recommended threads
- Migration issue cloud to cloud
I migrated between two Appwrite Cloud projects, transferring only the database. All collections and attributes were created, but some documents were not migrate...
- All function executions fail after 1 suc...
Follow up of https://discord.com/channels/564160730845151244/1401970848772132945 But to summarise: It seems that for some reason I can run a function on a dep...
- Unraid Deployment
Does anyone know how to point a production iOS app to an Appwrite Docker image I have on my Unraid server? I need a lot of storage, and having Appwrite on my Un...
