Can I get IP of user, who execute function? This is necessary for security checks
try looking at the headers....it might be in there...
How can i get headers in python function?
There isn't any information about ip
You should check req.headers from your request object
https://appwrite.io/docs/products/functions/development#request
Hey @polbuhanky can we close this issue?
Yes, thanks
[SOLVED] Getting IP of user in a function
Hi there! How did you solved it? The only stuff I get in headers is: { "host":"localhost", "x-appwrite-trigger":"http", "x-appwrite-user-id":"654420c...", "x-appwrite-user-jwt":"eyJ0...", "x-appwrite-continent-eu":"false", "content-type":"application/x-www-form-urlencoded", "connection":"keep-alive", "content-length":"296" }
Recommended threads
- functions
Code for function not being created in Github. Permissions are set correctly, repository is created, however no code is in the created repository. Just trying...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...
- Function permissions
In my app I have a CreateUser flow which makes several documents and at the end uses the functions.createExecution() to call a server-side function to create a ...
