Back

Function headers not set as documented

  • 0
  • Functions
  • Cloud
maru
20 Mar, 2025, 19:38

I wanted to log a user's country when they do changes in order to have auditability and make it easier for mods to detect hacked accounts.

Unfortunately I found out that (at least on Cloud) the headers object isn't complete with all documented fields. Do I need to configure something extra, or does that only work on specific events or on self-hosted?

Documentation: https://appwrite.io/docs/products/functions/develop#Headers Field I need: x-appwrite-country-code Headers I got on a function call:

TL;DR
Developers want to log a user's country during changes for auditability and account security, but are missing the 'x-appwrite-country-code' field in the headers object as mentioned in the documentation. This discrepancy seems to be present on the Cloud platform. It's unclear if extra configuration is needed or if this feature is limited to self-hosted setups. Solution: Contact platform support or refer to the specific Cloud documentation for potential workarounds or updates on header field availability.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more