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
- Rate limit blocking bulk function re-cre...
Hi team, I am on Appwrite Cloud (project: staging-dataspace, SGP region). I am in the midst of deleting ~115 functions that were stuck with .fra.appwrite.run do...
- Getting this error when creating a websi...
when I visit the site I get 404, even if the deployment is successfull
- unable to create dynamic relationship co...
dynamic Column with this set {'type': 'relationship', 'relationType': 'oneToOne', 'key': 'columnrshipkey', 'relatedTableId': 'abcabcabc12341234', 'twoWay': fal...