Skip to Content

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


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$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":[""], "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 }

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 06, 2017 at 08:11 AM

    Can someone please help me out.

    Add comment
    10|10000 characters needed characters exceeded