Skip to Content
avatar image
Former Member

HTTP POST service request from SAP UI5 to SAP IOT

Hi Experts,

Please guide me how to push data from SAP ui5 app to SAP iot push table through HTTP POST request.

This is giving 401 OPTIONS error(Unauthorized)

PLease help me out

ajax.png (17.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 14, 2017 at 07:39 AM

    Hello Sidhant,

    Authorization HTTP header value (after Basic key word) should be Base64-encoded "username:password" string. Change to:

    xhr.setRequestHeader ("Authorization", "Basic " + btoa(sUsername + ":" + sPassword));

    Regards,

    Anton

    Add comment
    10|10000 characters needed characters exceeded