Open hetunandu opened 3 years ago
This is another request related to this.
The user wants to obtain the IP address of their end users through Server/Proxy to create a whitelist in their API. This would significantly improve the security of the user's API. Currently, this is not possible with Appsmith, so this request would be of great help to our users by increasing the security of their APIs.
For now, I provided a workaround to the user, but it does not work very well for them because the IP address can be manipulated.
export default {
async GetIP() {
const response = await fetch('[https://api.ipify.org?format=json](https://api.ipify.org/?format=json)');
const data = await response.json();
const userIP = data.ip;
return userIP;
}
}
The workaround for the user is very simple:
Summary
Exposing local IP address of a user inside appsmith to enable apps that need logic to give access based on their LAN
Motivation