{"action":"created","issue":{"url":"https://api.github.com/repos/hypothesis/h/issues/2303","labels_url":"https://api.github.com/repos/hypothesis/h/issues/2303/labels{/name}","comments_url":"https://api.github.com/repos/hypothesis/h/issues/2303/comments","events_url":"https://api.github.com/repos/hypothesis/h/issues/2303/events","html_url":"https://github.com/hypothesis/h/pull/2303","id":86606933,"number":2303,"title":"Add API CORS support","user":{"login":"nickstenning","id":3602,"avatar_url":"https://avatars.githubusercontent.com/u/3602?v=3","gravatar_id":"","url":"https://api.github.com/users/nickstenning","html_url":"https://github.com/nickstenning","followers_url":"https://api.github.com/users/nickstenning/followers","following_url":"https://api.github.com/users/nickstenning/following{/other_user}","gists_url":"https://api.github.com/users/nickstenning/gists{/gist_id}","starred_url":"https://api.github.com/users/nickstenning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickstenning/subscriptions","organizations_url":"https://api.github.com/users/nickstenning/orgs","repos_url":"https://api.github.com/users/nickstenning/repos","events_url":"https://api.github.com/users/nickstenning/events{/privacy}","received_events_url":"https://api.github.com/users/nickstenning/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"seanh","id":22498,"avatar_url":"https://avatars.githubusercontent.com/u/22498?v=3","gravatar_id":"","url":"https://api.github.com/users/seanh","html_url":"https://github.com/seanh","followers_url":"https://api.github.com/users/seanh/followers","following_url":"https://api.github.com/users/seanh/following{/other_user}","gists_url":"https://api.github.com/users/seanh/gists{/gist_id}","starred_url":"https://api.github.com/users/seanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanh/subscriptions","organizations_url":"https://api.github.com/users/seanh/orgs","repos_url":"https://api.github.com/users/seanh/repos","events_url":"https://api.github.com/users/seanh/events{/privacy}","received_events_url":"https://api.github.com/users/seanh/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-09T13:53:31Z","updated_at":"2015-06-09T18:21:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hypothesis/h/pulls/2303","html_url":"https://github.com/hypothesis/h/pull/2303","diff_url":"https://github.com/hypothesis/h/pull/2303.diff","patch_url":"https://github.com/hypothesis/h/pull/2303.patch"},"body":"Adds basic CORS support to the API. This is implemented as ~~a tween, but perhaps might be better as~~ plain ol' WSGI middleware.\r\n\r\nNotable limitations:\r\n\r\n- returned access control headers are not customisable on a per-view basis\r\n- sending credentials in CORS requests is currently disabled -- this means that you cannot redeem a session cookie from the h application for an auth token\r\n\r\nFixes #2186."},"comment":{"url":"https://api.github.com/repos/hypothesis/h/issues/comments/110454419","html_url":"https://github.com/hypothesis/h/pull/2303#issuecomment-110454419","issue_url":"https://api.github.com/repos/hypothesis/h/issues/2303","id":110454419,"user":{"login":"landscape-bot","id":10010231,"avatar_url":"https://avatars.githubusercontent.com/u/10010231?v=3","gravatar_id":"","url":"https://api.github.com/users/landscape-bot","html_url":"https://github.com/landscape-bot","followers_url":"https://api.github.com/users/landscape-bot/followers","following_url":"https://api.github.com/users/landscape-bot/following{/other_user}","gists_url":"https://api.github.com/users/landscape-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/landscape-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landscape-bot/subscriptions","organizations_url":"https://api.github.com/users/landscape-bot/orgs","repos_url":"https://api.github.com/users/landscape-bot/repos","events_url":"https://api.github.com/users/landscape-bot/events{/privacy}","received_events_url":"https://api.github.com/users/landscape-bot/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T18:21:23Z","updated_at":"2015-06-09T18:21:23Z","body":"[![Code Health](https://landscape.io/badge/185260/landscape.svg?style=flat)](https://landscape.io/diff/173709)\nRepository health increased by 0.12% when pulling **[0d34e51](https://github.com/hypothesis/h/commit/0d34e517bf0b9a40b6458b4d50a1b0c1dd49e4e9) on add-api-cors-support** into **[362efe8](https://github.com/hypothesis/h/commit/362efe8b5d14ee93b159dbaab7f9084a63ba1343) on master**.\n\n * [4 new problems were found](https://landscape.io/diff/173709) (including 0 errors and 1 code smell).\n * No problems were fixed."}}