Skip to Content
0

Access hana xs odata service in ui5 app deployed in Gateway server

Feb 02, 2017 at 03:30 PM

103

avatar image

Hi,

I have created a simple ui5 app in Hana Studio which accessing data from odata service url (created in hana) and displaying data in table format. It works fine in hana repository.

Now I have deployed the app in SAP Fiori Gateway server; but now the app is unable to access the odata service.

Error message is

GET https://qashsuecdb001.lex.lexmark.com:4314/avdutta/delivery.xsodata/$metadata 403 (Forbidden)

My Hana environment is SPS11.

Please let me know what is configuration I am missing. I need a solution which will work irrespective of browser; also will work when I will transport the components to production environment.

Please help.

Note: My .xsaccess file is

{ "exposed" : true, "authentication" : { "method": "Form" }, "cache_control" : "must-revalidate", "cors" : { "enabled" : true, "allowMethods":["GET","POST","HEAD","OPTIONS"], "allowOrigin":["https://mgx.lexmark.com"], "allowCredential":true, "exposeHeaders": "access-control-allow-headers,access-control-allow-origin,access-control-expose-headers,authorization", "allowHeaders":"Origin, Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control", "maxAge":"3600" }, "enable_etags" : false, "force_ssl" : false, "prevent_xsrf" : true }

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Avijit Dutta Feb 06, 2017 at 08:11 AM
0

Can someone please help me out.

Share
10 |10000 characters needed characters left characters exceeded