Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Hana Cloud Platform :HTTP POST on XSJS/XSODATA throws 403 Forbidden

$
0
0

Hi Experts,

 

 

I am facing issue in my HANA CLOUD PLATFORM productive instance (ap1.hana.ondemand.com : HANA Revision 96 ) whenever I am trying to perform HTTP POST.


----------NOTE: HTTP GET works fine. HTTP POST works fine on the on-premise HANA system(Revision 97).-----------


 

 

1. I exposed a CDS table as ODATA service and tried to insert data through HTTP POST , tried to update using PUT and  DELETE as well (through POSTMAN) but always the response was "403 forbidden ".

 

2. Created a simple XSJS (displays 'SUCCESS') and tried to call the XSJS using HTTP POST (through POSTMAN). Even for this the same  403 Forbidden error.



SERVER LOG:

5:07:59:00 +0000] POST /TEST/trypost.xsjs HTTP/1.1 403 1932 2

 

 

The USER has all rights to the package, the underlying schema,etc. and hence I guess  the issue is not related to roles/privileges.

 

I am sure there is some authorization configuration that is preventing POST/PUT/DELETE requests. But couldn't figure out.

 

Later, going through many blogs and articles tried the following configurations to alleviate the problem:

 

1. Disabled XSRF in my XSACCESS file.

 

 

2. Enabled CORS


 

 

Even after all these changes, the issue remains the same.

 

Help me in figuring out the issue. Thanks in advance.

 

 

 

Regards

S.Srivatsan


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>