Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 04, 2015 at 07:31 AM

    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

    Add comment
    10|10000 characters needed characters exceeded