cancel
Showing results for 
Search instead for 
Did you mean: 

Odata POST showing HTTP 403: Forbidden with Anonymous users. GET call working.

Former Member
0 Kudos

Hi Folks,

Could anyone please let me know whether the Odata Post operation do not support using Anonymous users or not.

I have done the configuration steps showed in The Application-Access File - SAP HANA Developer Guide for SAP HANA Studio - SAP Library and

Created .xssqlcc file as per the instructions, referred the same in .xsaccess file

{

    "exposed": true,

    "anonymous_connection": "demo::anon",

    "authentication" : null,

    "prevent_xsrf": true

}

Also, referred the user details in Hana XS Admin console against the .xssqlcc file.

now I am not getting any issue when I am calling the GET method to see the records inside.

But I am facing HTTP 403:  Forbidden message when I call the POST method from a rest client.

So I just want to confirm whether the POST call supports for Anonymous users or not.

Thanks and Kind Regards,

Sourav

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member194780
Active Participant
0 Kudos

Hi Sourav,

- Did you check the trace logs ?

- Have you specified the Content-Type: application/json;charset=utf-8 ?

Content type is necessary for Update,Delete,Create operation

If you still face error, share your xsaccess file..

-Avinash