{"action":"created","issue":{"url":"https://api.github.com/repos/ssbc/patchwork/issues/385","repository_url":"https://api.github.com/repos/ssbc/patchwork","labels_url":"https://api.github.com/repos/ssbc/patchwork/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/ssbc/patchwork/issues/385/comments","events_url":"https://api.github.com/repos/ssbc/patchwork/issues/385/events","html_url":"https://github.com/ssbc/patchwork/issues/385","id":156031341,"number":385,"title":"patchwork binds to wrong address, creating CSP issue which prevents use","user":{"login":"Aranjedeath","id":8355878,"avatar_url":"https://avatars.githubusercontent.com/u/8355878?v=3","gravatar_id":"","url":"https://api.github.com/users/Aranjedeath","html_url":"https://github.com/Aranjedeath","followers_url":"https://api.github.com/users/Aranjedeath/followers","following_url":"https://api.github.com/users/Aranjedeath/following{/other_user}","gists_url":"https://api.github.com/users/Aranjedeath/gists{/gist_id}","starred_url":"https://api.github.com/users/Aranjedeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aranjedeath/subscriptions","organizations_url":"https://api.github.com/users/Aranjedeath/orgs","repos_url":"https://api.github.com/users/Aranjedeath/repos","events_url":"https://api.github.com/users/Aranjedeath/events{/privacy}","received_events_url":"https://api.github.com/users/Aranjedeath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-20T19:10:31Z","updated_at":"2016-05-21T03:36:35Z","closed_at":null,"body":"I just got setup with patchwork via `npm install ssb-patchwork -g`, using nvm node.\r\n\r\nInstalled successfully. \r\n\r\nI run `patchwork` and it binds to my computer's zerotier address. \r\nI haven't changed any settings, so the web interface is supposed to be available on 127.0.0.1:7777, but it fails to load with a weird stack trace. https://gist.github.com/Aranjedeath/a4ef7a7dd4d2e07f120692f222001399\r\nthe error looks like https://mirror.explodie.org/Screenshot_20160520_113716.png\r\n\r\nthe reason, from browser console:\r\n\r\n`Content Security Policy: The page's settings blocked the loading of a resource at ws://127.0.0.1:7777/ (\"connect-src http://127.0.0.1:7777 ws://29.202.146.242:7777 wss://29.202.146.242:7777\").`\r\n\r\nSo, it appears hardcoded to bind on 127.0.0.1, but for some reason the ws/wss binding logic is picking my zerotier address to bind. patchwork flatly refuses (as it should) to respond on the zerotier address, preventing whatever it needs to load from websocket, from loading. \r\n\r\nnode version 4.4.4 (latest stable)\r\nnpm version 2.15.1 (latest for that node)"},"comment":{"url":"https://api.github.com/repos/ssbc/patchwork/issues/comments/220756245","html_url":"https://github.com/ssbc/patchwork/issues/385#issuecomment-220756245","issue_url":"https://api.github.com/repos/ssbc/patchwork/issues/385","id":220756245,"user":{"login":"Aranjedeath","id":8355878,"avatar_url":"https://avatars.githubusercontent.com/u/8355878?v=3","gravatar_id":"","url":"https://api.github.com/users/Aranjedeath","html_url":"https://github.com/Aranjedeath","followers_url":"https://api.github.com/users/Aranjedeath/followers","following_url":"https://api.github.com/users/Aranjedeath/following{/other_user}","gists_url":"https://api.github.com/users/Aranjedeath/gists{/gist_id}","starred_url":"https://api.github.com/users/Aranjedeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aranjedeath/subscriptions","organizations_url":"https://api.github.com/users/Aranjedeath/orgs","repos_url":"https://api.github.com/users/Aranjedeath/repos","events_url":"https://api.github.com/users/Aranjedeath/events{/privacy}","received_events_url":"https://api.github.com/users/Aranjedeath/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T03:36:35Z","updated_at":"2016-05-21T03:36:35Z","body":"retested with new node and npm (5.11.1/3.8.6) and no dice."}}
{"actor":{"display_login":"Aranjedeath"}}