HTTP API - Cors and JQuery if quey comes from remote host
Posted: 23 Sep 2016 15:18
Hi,
does anybody have a running example of pulling a sensors value from Z-Way HTTP API by javascript from another host?
If i don't add an authentication header to the javascipt request, Z-Way API responds with a 401 - message.
If i add an authentication header so the javascript request, i get a CORS error shown.
Is there a way to have Z-Way API allow javscript based requests from external hosts (e.g. another webserver running at the same network).
Regards
Boxson
does anybody have a running example of pulling a sensors value from Z-Way HTTP API by javascript from another host?
If i don't add an authentication header to the javascipt request, Z-Way API responds with a 401 - message.
If i add an authentication header so the javascript request, i get a CORS error shown.
Is there a way to have Z-Way API allow javscript based requests from external hosts (e.g. another webserver running at the same network).
Regards
Boxson