{"action":"opened","issue":{"url":"https://api.github.com/repos/knalli/angular-vertxbus/issues/39","labels_url":"https://api.github.com/repos/knalli/angular-vertxbus/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/knalli/angular-vertxbus/issues/39/comments","events_url":"https://api.github.com/repos/knalli/angular-vertxbus/issues/39/events","html_url":"https://github.com/knalli/angular-vertxbus/issues/39","id":59326900,"number":39,"title":"CORS issue on 80 port with https","user":{"login":"Ignikot","id":2831790,"avatar_url":"https://avatars.githubusercontent.com/u/2831790?v=3","gravatar_id":"","url":"https://api.github.com/users/Ignikot","html_url":"https://github.com/Ignikot","followers_url":"https://api.github.com/users/Ignikot/followers","following_url":"https://api.github.com/users/Ignikot/following{/other_user}","gists_url":"https://api.github.com/users/Ignikot/gists{/gist_id}","starred_url":"https://api.github.com/users/Ignikot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ignikot/subscriptions","organizations_url":"https://api.github.com/users/Ignikot/orgs","repos_url":"https://api.github.com/users/Ignikot/repos","events_url":"https://api.github.com/users/Ignikot/events{/privacy}","received_events_url":"https://api.github.com/users/Ignikot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-28T05:37:10Z","updated_at":"2015-02-28T05:37:10Z","closed_at":null,"body":"There are CORS error (tested in firefox), if protocol is \"https\" and page url app.site.com - urlServer evaluated as  app.site.com:80/\r\nFor https \":80\" is error (\":443\" is better but in both cases ports can be omitted as default).\r\n\r\nTo fix it replace string 25 in https://github.com/knalli/angular-vertxbus/blob/master/src/wrapper.coffee\r\nurlServer: \"#{location.protocol}//#{location.hostname}:#{location.port or 80}\"\r\nwith something like\r\nurlServer: \"#{location.protocol}//#{location.hostname}\" + if location.port then \":#{location.port}\"  else \"\""}}