MobiControl API Using Fetch-Function from a Browser

JD
John Doe Platinum Contributor
Eisen Karl GmbH

I am currently trying to programme a little toolbox for our technicians (i don´t want to give them access to devices and or webconsole directly). Hence its just a small tool i didnt want to host it as a webservice / server somewhere either.

The issue with using fetch in any modern browser no is that unfortunately the mobicontrol api answers POST-Request´s withouth CORS Information.

<

Access to fetch at '' from origin '' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

>

With mode: 'no-cors' it works but the browser only returns opaque data

3 years ago
SOTI MobiControl
ANSWERS