jez500 / chorus

A Web UI for XBMC, focused on user experience and music. Get the latest version here: https://github.com/xbmc/chorus2
357 stars 54 forks source link

Fixed relative url for jsonrpc endpoint #77

Closed bradvido closed 10 years ago

bradvido commented 10 years ago

Using '/jsonrpc' can cause problems if you have a proxy infront of xbmc and it already has a relative URL.

Simply removing the '/' form the front of the jsonrpc url will fix it (and does not break non-proxied access). The problem is if you already have a relative url (https://mydomain.com/xbmcbox), then /jsonrpc will try to hit https://mydomain.com/jsonrpc (gets 404). If you change it to 'jsonrpc', then it will work correctly and hit https://mydomain.com/xbmcbox/jsonrpc

bradvido commented 10 years ago

Related to https://github.com/jez500/chorus/pull/78