{"action":"created","issue":{"url":"https://api.github.com/repos/jsxc/jsxc/issues/147","labels_url":"https://api.github.com/repos/jsxc/jsxc/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/jsxc/jsxc/issues/147/comments","events_url":"https://api.github.com/repos/jsxc/jsxc/issues/147/events","html_url":"https://github.com/jsxc/jsxc/issues/147","id":67964634,"number":147,"title":"BOSH problem","user":{"login":"lelik9","id":6378746,"avatar_url":"https://avatars.githubusercontent.com/u/6378746?v=3","gravatar_id":"","url":"https://api.github.com/users/lelik9","html_url":"https://github.com/lelik9","followers_url":"https://api.github.com/users/lelik9/followers","following_url":"https://api.github.com/users/lelik9/following{/other_user}","gists_url":"https://api.github.com/users/lelik9/gists{/gist_id}","starred_url":"https://api.github.com/users/lelik9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lelik9/subscriptions","organizations_url":"https://api.github.com/users/lelik9/orgs","repos_url":"https://api.github.com/users/lelik9/repos","events_url":"https://api.github.com/users/lelik9/events{/privacy}","received_events_url":"https://api.github.com/users/lelik9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-12T21:55:23Z","updated_at":"2015-04-14T07:31:39Z","closed_at":null,"body":"Hello.\r\nI have my owncloud at https://cloud.example.com.\r\nIn my apache config i add:\r\n   < Location /http-bind>\r\n      Order allow,deny\r\n      Allow from all\r\n   < /Location>\r\n   RewriteEngine On\r\n   RewriteRule ^/http-bind$ http://localhost:5280/http-bind [P,L]\r\nAnd when i go to https://cloud.example.com/http-bind/ open BOSH server page\r\nIn xmpp config I set BOSH url - /http-bind/ \r\nIn config.php I add:   *'custom_csp_policy' => 'default-src \\'self\\' https://cloud.example.com/http-bind/; script-src \\'self\\'  \\'unsafe-eval\\'; style-src \\'self\\' \\'unsafe-inline\\'; frame-src *; img-src *; font-src \\'self\\' data:; media-src *; connect-src *',\r\n  'theme' => '',*\r\nBut when I press save, get error: *BOSH server NOT reachable. Please beware of the same-origin-policy (SOP). If your XMPP server doesn't reside on the same host as your OwnCloud (same port/protocol), use the Apache ProxyRequest or modify the content-security-policy (CSP) by defining \"custom_csp_policy\" in OwnCloud's config.php.*"},"comment":{"url":"https://api.github.com/repos/jsxc/jsxc/issues/comments/92676295","html_url":"https://github.com/jsxc/jsxc/issues/147#issuecomment-92676295","issue_url":"https://api.github.com/repos/jsxc/jsxc/issues/147","id":92676295,"user":{"login":"sualko","id":2974196,"avatar_url":"https://avatars.githubusercontent.com/u/2974196?v=3","gravatar_id":"","url":"https://api.github.com/users/sualko","html_url":"https://github.com/sualko","followers_url":"https://api.github.com/users/sualko/followers","following_url":"https://api.github.com/users/sualko/following{/other_user}","gists_url":"https://api.github.com/users/sualko/gists{/gist_id}","starred_url":"https://api.github.com/users/sualko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sualko/subscriptions","organizations_url":"https://api.github.com/users/sualko/orgs","repos_url":"https://api.github.com/users/sualko/repos","events_url":"https://api.github.com/users/sualko/events{/privacy}","received_events_url":"https://api.github.com/users/sualko/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T07:31:39Z","updated_at":"2015-04-14T07:31:39Z","body":"I guess your rewrite rule is wrong. It should be (untested):\r\n\r\n```\r\nRewriteRule ^/http-bind/ http://localhost:5280/http-bind/ [P,L]\r\n```"}}