api - WSO2: passing the caller's IP address to the backend -


say instance of wso2's api manager receives api calls external client, possible pass caller's ip address backend (in header example, other solutions welcome too)? if yes how?

http header way it. can create sequence , attach api.

<?xml version="1.0" encoding="utf-8"?> <sequence xmlns="http://ws.apache.org/ns/synapse" name="sample">     <property name="client_ip" expression="get-property('axis2', 'remote_addr')" scope="transport"/> </sequence> 

if have proxy before api manager, may not able identify real client using remote_addr. ip of proxy. in such cases can use x-forwarded-for http header.


Comments

Popular posts from this blog

java - AEM: 403 Forbidden occurs when call a Post servlet -

ruby on rails - ActiveRecord order not working -

Google Alert - facebook