Hi All,
To state the issue, first I'll walk you through the setup we have:-
1) SAPUI5 is deployed to a space in Cloud Foundry environment with Standalone approuter.
2) The UI app is connecting to nodejs backend app which is also deployed in the same cf space.
We are facing issues when trying to post data to on Premise system which are as below:
1) The backend app is trying to post data to SAP system using soap request (web service), but it was throwing 401 error even after providing proper authentication token in header properties.
2) To resolve the issue, we tried to post the data using an Odata service from UI app itself. When running the UI app in preview mode, the POST method works and provides 200 status code. But when same app is being run from CF space after the app is deployed it throws 403 error for the same odata service.
The xs-csrf token is also getting fetched and is passed as request header in the POST method.
So, we have tried two different approaches, and in both approach we are getting error while trying to post data when running app in standalone mode.
The GET service in odata is working fine.
Kindly let us know what configuration needs to be done to resolve the issue.
Thanks & Regards,
Rajat Jain