2014-01-16, 15:52
Why shouldn't you be able to do a JSON-RPC request with GET? XBMC supports it.
(2014-01-18, 00:27)jfcarroll Wrote: That's funny. I experimented with curl and I seemed to only be able to get it to work using --data-binary It didn't seem to work with the 'request' query string. Maybe I just typed something wrong.
Quote: --data-binary <data>
(HTTP) This posts data exactly as specified with no extra processing whatsoever.
(2014-04-25, 02:27)cucko Wrote: I think it's totally legit request to have xbmc json-rpc to have CORS headers enabled for local network or at least JSONP response.What? There are quite a few nice webinterfaces in XBMC which completely rely on JavaScript without any server-side code and they work just fine without CORS or JSONP. The response is simple JSON embedded in a HTTP message body and JavaScript is perfectly capable of handling that.
JavaScript call to xbmc is imposible without server side code (or chrome extension from what i've found).
Well the call is ok, but the response is not readable with JS.
(2014-04-25, 02:27)cucko Wrote: Good thing is that WebSocket connections removes these problems, but its not working on XBMC for Android.This is the first time I hear about this. You don't happen to have a debug log?
(2014-04-25, 07:47)Montellese Wrote: What? There are quite a few nice webinterfaces in XBMC which completely rely on JavaScript without any server-side code and they work just fine without CORS or JSONP. The response is simple JSON embedded in a HTTP message body and JavaScript is perfectly capable of handling that.it's not a problem to access same domain with javascript. the problem is when i try to make a request to json-rpc from different pc with javascript.
(2014-04-25, 07:47)Montellese Wrote: This is the first time I hear about this. You don't happen to have a debug log?i have installed xbmc on android, then tried to connect from web browser on ws//ip:9090. connection has failed. http 8080 and 80 are working ok.
(2014-05-03, 22:21)cucko Wrote: it's not a problem to access same domain with javascript. the problem is when i try to make a request to json-rpc from different pc with javascript.Yes but that is a completely different problem and doesn't warrant a statement like
one way to bypass this on chrome is to create an extension and make all the requests there. but without CORS header making requests is impossible only with javascript (and without using some kind of proxy page).
Quote:JavaScript call to xbmc is imposible without server side code (or chrome extension from what i've found).It works perfectly fine just not for cross-domain requests.
Well the call is ok, but the response is not readable with JS.
(2014-05-03, 22:21)cucko Wrote:You need to connect to(2014-04-25, 07:47)Montellese Wrote: This is the first time I hear about this. You don't happen to have a debug log?i have installed xbmc on android, then tried to connect from web browser on ws//ip:9090. connection has failed. http 8080 and 80 are working ok.
ws://<ip>:<port>/jsonrpc