ZWaveApi Requests fail after upgrade CORS
Posted: 12 Jan 2017 01:41
Hi,
i am working with the zwave-mini-ui-master using the requests it uses to control the zwayserver from my
own website e.g. get http://ip:8083/zWaveApi/Data/0.
After upgrading the zwayserver all requests get blocked. The ones i took from the example code and modified but also the original ones out of the mini-ui-master application itself.
The blocking reason is:
'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.111.xxx:8083/ZWaveAPI/Data/0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).'
I did find one post here in the forum describing this error but the proposed solution is not working for me.
I think the solution in this thread is for requests to ZAutomation and not for ZWaveApi.
I tried everything i could think of and am getting really desperate now. Not only have i used the ZWaveApi a lot already and would have to do it all again with another api (probably ZAutomation) the zwaveapi is really easy to use.
Does anyone know how to add the CORS header that it also works for zwaveapi or what else i can do, that would save me a ton of work.
rgds
Andy
i am working with the zwave-mini-ui-master using the requests it uses to control the zwayserver from my
own website e.g. get http://ip:8083/zWaveApi/Data/0.
After upgrading the zwayserver all requests get blocked. The ones i took from the example code and modified but also the original ones out of the mini-ui-master application itself.
The blocking reason is:
'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.111.xxx:8083/ZWaveAPI/Data/0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).'
I did find one post here in the forum describing this error but the proposed solution is not working for me.
I think the solution in this thread is for requests to ZAutomation and not for ZWaveApi.
I tried everything i could think of and am getting really desperate now. Not only have i used the ZWaveApi a lot already and would have to do it all again with another api (probably ZAutomation) the zwaveapi is really easy to use.
Does anyone know how to add the CORS header that it also works for zwaveapi or what else i can do, that would save me a ton of work.
rgds
Andy