I wanted to run Leave Approval App on a local server (via XAMPP). I have downloaded the code and have imported it to my Eclipse. When I tried accessing the application on the browser. The UI part seems to be fine but I'm having problem accessing the OData which is on a different server (not local). I was expecting just CORS error but the OData that is being retrieved is the local OData which is non-existed.
I have already modified the path in web.xml
<servlet>
<servlet-name>SimpleProxyServlet</servlet-name>
<servlet-class>com.sap.ui5.proxy.SimpleProxyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SimpleProxyServlet</servlet-name>
<url-pattern>/sap/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>
<param-value>http://xx.xx.xxx.xx:8000/sap/</param-value> <!---location of odata-->
</context-param>
I wonder if I have to do reverse proxy on the webserver. Configuring the config files of XAMPP.
Any help is greatly appreciated. Thank you in advance.