to be able to render the location map (https://github.com/openhab/openhab/wiki/GoogleMap) also from remote in the native application I tried to access the location values via rest using https://user:firstname.lastname@example.org/rest … in the html; but it fails - I assume my.openHAB does not allow CORS (cross domain calls):
XMLHttpRequest cannot load https://my.openhab.org/rest/items/PatrikLocation/state/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://haus:8080' is therefore not allowed access. The response had HTTP status code 401.
Would it make sense to enable such requests, or is this too much of a security risk? Is there another way I can make the map work in the native apps (unfortunately there’s no location widget)?
with kind regards,