Jquery PUT issue:

Sending the rest command example code from the chrome console to openhab 1.7.1 returns the following result:

XMLHttpRequest cannot load http://192.168.0.5:8081/rest/items/light_gLivRm_Dining/state. Method PUT is not allowed by Access-Control-Allow-Methods.

How can I solve this issue?

Thx in advance for your answer

G.

Hi G.

I had the same issue and was trying to get it fixed. I changed my Apache config to allow the PUT method. Anyways, using JQuery and the PUT method didn’t worked at all. Finally I got my light working using the POST method instead the PUT method. See the REST Examples and give POST a try.

I think PUT is an issue and will hopefully sometimes fixed…

Regards,
michel