maruOriginal post
Rank 2: Process
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:
Summary
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.