{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/kibana/issues/2655","labels_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2655/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2655/comments","events_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2655/events","html_url":"https://github.com/elasticsearch/kibana/issues/2655","id":54513483,"number":2655,"title":"Add config option to namespace all requests kibana makes (for proxying)","user":{"login":"timting","id":448695,"avatar_url":"https://avatars.githubusercontent.com/u/448695?v=3","gravatar_id":"","url":"https://api.github.com/users/timting","html_url":"https://github.com/timting","followers_url":"https://api.github.com/users/timting/followers","following_url":"https://api.github.com/users/timting/following{/other_user}","gists_url":"https://api.github.com/users/timting/gists{/gist_id}","starred_url":"https://api.github.com/users/timting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timting/subscriptions","organizations_url":"https://api.github.com/users/timting/orgs","repos_url":"https://api.github.com/users/timting/repos","events_url":"https://api.github.com/users/timting/events{/privacy}","received_events_url":"https://api.github.com/users/timting/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/kibana/labels/enhancement","name":"enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-15T22:25:50Z","updated_at":"2015-01-16T22:32:50Z","closed_at":null,"body":"I'm wondering if there can be an option in the config file to namespace all the requests kibana makes (ex, instead of 'stylesheets/base.css', '[insert namespace here]/stylesheets/base.css'). I'm trying to embed kibana in a rails application, and this will make it easier to identify which requests are originating from kibana."},"comment":{"url":"https://api.github.com/repos/elasticsearch/kibana/issues/comments/70333532","html_url":"https://github.com/elasticsearch/kibana/issues/2655#issuecomment-70333532","issue_url":"https://api.github.com/repos/elasticsearch/kibana/issues/2655","id":70333532,"user":{"login":"timting","id":448695,"avatar_url":"https://avatars.githubusercontent.com/u/448695?v=3","gravatar_id":"","url":"https://api.github.com/users/timting","html_url":"https://github.com/timting","followers_url":"https://api.github.com/users/timting/followers","following_url":"https://api.github.com/users/timting/following{/other_user}","gists_url":"https://api.github.com/users/timting/gists{/gist_id}","starred_url":"https://api.github.com/users/timting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timting/subscriptions","organizations_url":"https://api.github.com/users/timting/orgs","repos_url":"https://api.github.com/users/timting/repos","events_url":"https://api.github.com/users/timting/events{/privacy}","received_events_url":"https://api.github.com/users/timting/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T22:32:50Z","updated_at":"2015-01-16T22:32:50Z","body":"I currently have the requests going to yoursite.com/kibana. Then in the router, I make sure it's kosher and ferry it on to the kibana server. The issue is that what gets sent back has stuff like <link rel=\"stylesheet\" href=\"/styles/main.css?_b=4673\"> or <script src=\"/bower_components/requirejs/require.js?_b=4673\"></script>. These go directly to the rails server and don't exist, since they're not namespaced. If the suggestion I have gets implemented, these would change to read <link rel=\"stylesheet\" href=\"/kibana/styles/main.css?_b=4673\"> and <script src=\"/kibana/bower_components/requirejs/require.js?_b=4673\">\r\n\r\nI guess the other way this might work is if you took off the leading slash, but that might foul up a lot of other stuff."}}