Skip to Content

Send command from UI5-app to IoT Application Enablement

Hi,

when attempting to send a command from a UI5-app to SAP IoT Application Enablement, we copied the code Postman generates for the usual PUT request to the button control in SAP WebIDE through which we want to execute the request.

When pressing the button in our UI5-app, we receive the following errors:

Access to XMLHttpRequest at 'https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things%28%27716DFA6DFBE8496EA96A6314A1D9661C%27%29/ReferenceProperties/iot.iotfab.thingshadow:Robot/Arm' from origin 'https://v2neo-a275fc15c.dispatcher.hana.ondemand.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://appiot-mds.cfapps.eu10.hana.ondemand.com/Things%28%27716DFA6DFBE8496EA96A6314A1D9661C%27%29/ReferenceProperties/iot.iotfab.thingshadow:Robot/Arm with MIME type application/vnd.sun.wadl+xml. See https://www.chromestatus.com/feature/5629709824032768 for more details.

Has anyone encountered these errors before and can tell us which steps to take?

Thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 06 at 07:41 AM

    Have you defined a destination to your IoT Application Enablement? If you do so, you can avoid CORS issues.

    Add comment
    10|10000 characters needed characters exceeded