Posted by m.devita
What steps will reproduce the problem?
WebIOPi version used? =>
Python version used? =>
Distro used? (WebIOPi has only been tested on Raspbian Wheezy) =>
Raspberry Pi board revision? (1 or 2) => 1
For Javascript side bugs, Browser? =>
Please provide any additional information below.
Need to enable CORS headers on python server side, or allow jsonp return of data. I am attempting to communicate to the raspberry pi's GPIO via REST but since my nodeJs http server is running on port 80 and the webiopi is running on port 8000 it causes a CORS issue. JSONP wont work as data is transmitted as text/plain and callback is dropped.
Posted by trouch
refused for security issue. you should proxy requests from your front server to webiopi instead.
Posted by m.devita
Can you provide any documentation on how to do this?
Posted by trouch
I don't know how to do it using nodejs. sorry. for apache, you have to use proxypass directive.
Posted by trouch
Issue 50 has been merged into this issue.