Mobile Web Application Consuming Data From Gateway oData Services
I have been facing an issue in the mobile web application where the UI files(cordova project) are loaded from the a server other than gateway server and from within the application I am calling the oData services so I am facing the SOP issue but if I disable web security on client(Browser while testing) than everthing works fine. During hosting part of the applcaition I have hosted on a public server and client doesn't have any reverse proxy in place they directly connect through public IP or VPN(desktop) so my UI loads properly on the client browser as the hosted application url is http://myhostedserver:8088/index.html (IIS as web server) but when I give any requests to the oData services like http://mygatewayserver:8000/sap/ from files within the hosted application it rejects due to same origin policy. Is there any possible work around to keep the UI files same as data services? any help will be greatly appreciated.