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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...