So i am new to HASS and i am trying to use the resfull API to change a switch state from a web page i have, using ajax post command.
when i try to run the post command i get the error with the cross domain issue which is blocked by my browser and do not allow me to issue such post commands from different domains (suppose to be security issue).
One simple solution ,i found, should be using cors HA http, which is suppose to be supported by HA, with setting the cors_allowed_origins to my other computer IP address.
Unfortunately, this does not work and i am not sure if the problem is with my setup or is it with HA, does any one know if i need to give my IP address only or with the http prefix ar with the port?
Or am i completely out here and thats not the solution i need.
Thanks.