cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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 }

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Can someone please help me out.