Root cause of getting 404 error when do rest call to google places apis

When we do call any rest api starting with (ex: google location api) from an application other than a normal browser I observed we are getting 404 error message as the response. 

What we can do to prevent this

  • Add host: parameter to the request header when application send rest call to that api

In WSO2 ESB we can use below property before send mediator. It will add above parameter to request header when ESB send rest call to

<property name="REQUEST_HOST_HEADER" value="" scope="axis2"></property> 


Popular posts from this blog

Application Whitelist and Blacklist Feature in WSO2 EMM

WSO2 APP Manager(APPM) and WSO2 Enterprise Mobility Manager (EMM) integration

How to map existing OAuth applications in WSO2 API Manager User Interface