{"action":"created","issue":{"url":"https://api.github.com/repos/cgarwood/hacontrolpoint/issues/5","repository_url":"https://api.github.com/repos/cgarwood/hacontrolpoint","labels_url":"https://api.github.com/repos/cgarwood/hacontrolpoint/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/cgarwood/hacontrolpoint/issues/5/comments","events_url":"https://api.github.com/repos/cgarwood/hacontrolpoint/issues/5/events","html_url":"https://github.com/cgarwood/hacontrolpoint/issues/5","id":187493716,"number":5,"title":"Drop PHP requirement","user":{"login":"michaelarnauts","id":1193779,"avatar_url":"https://avatars.githubusercontent.com/u/1193779?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelarnauts","html_url":"https://github.com/michaelarnauts","followers_url":"https://api.github.com/users/michaelarnauts/followers","following_url":"https://api.github.com/users/michaelarnauts/following{/other_user}","gists_url":"https://api.github.com/users/michaelarnauts/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelarnauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelarnauts/subscriptions","organizations_url":"https://api.github.com/users/michaelarnauts/orgs","repos_url":"https://api.github.com/users/michaelarnauts/repos","events_url":"https://api.github.com/users/michaelarnauts/events{/privacy}","received_events_url":"https://api.github.com/users/michaelarnauts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-05T12:14:57Z","updated_at":"2016-11-07T20:45:35Z","closed_at":null,"body":"Since you can whitelist IP addresses in HA so they don't have to login, you can drop the PHP proxy in between. This makes it more secure, since the proxy is reachable by everyone, and the API itself only from the device that is running the frontend. An added bonus is a small speed increase because you can directly connect to Home Assistant.\r\n\r\nI have this in my `configuration.yaml` of HA:\r\n\r\n```yaml\r\n  trusted_networks:\r\n    - 192.168.1.0/24\r\n  cors_allowed_origins:\r\n    - 'null'\r\n    - '*'\r\n```\r\n\r\nThe `cors_allowed_origins` is needed because Chrome doesn't like AJAX calls when the index.html is opened locally (it might be that this is only during testing when the index.html is opened in a browser)."},"comment":{"url":"https://api.github.com/repos/cgarwood/hacontrolpoint/issues/comments/258957209","html_url":"https://github.com/cgarwood/hacontrolpoint/issues/5#issuecomment-258957209","issue_url":"https://api.github.com/repos/cgarwood/hacontrolpoint/issues/5","id":258957209,"user":{"login":"michaelarnauts","id":1193779,"avatar_url":"https://avatars.githubusercontent.com/u/1193779?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelarnauts","html_url":"https://github.com/michaelarnauts","followers_url":"https://api.github.com/users/michaelarnauts/followers","following_url":"https://api.github.com/users/michaelarnauts/following{/other_user}","gists_url":"https://api.github.com/users/michaelarnauts/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelarnauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelarnauts/subscriptions","organizations_url":"https://api.github.com/users/michaelarnauts/orgs","repos_url":"https://api.github.com/users/michaelarnauts/repos","events_url":"https://api.github.com/users/michaelarnauts/events{/privacy}","received_events_url":"https://api.github.com/users/michaelarnauts/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T20:45:35Z","updated_at":"2016-11-07T20:45:35Z","body":"Fixed in af18ec7f43e0367f7fc6efb1d5ed20550d524ba1"}}
{"actor":{"display_login":"michaelarnauts"}}