Hi,
we are trying to call a HANA IoT Post service e.g. https://iotmms . hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/ >
However, this does not work for us. After following a description in
Communicate with IoT in your WebIDE project (here the push to device is described) .
when using the the sap.service.IOT.post of the IOT helper code in WEBIDE we get errors of type:
MLHttpRequest cannot load https://iotmms . hanatrial.ondemand.com/com.sap.iotservices.mms/v1/api/http/data/ >. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' https://fill-s0002907416trial.dispatcher.hanatrial.ondemand.com' is therefore not allowed access. The response had HTTP status code 401
Although there are some blogs stating that you cannot connect from a local HANATRIAL website to the local HANATRIAL .xsodata services, we wonder whether there is a way for the IoT services to be called locally on the trial landscape.