{"action":"created","issue":{"url":"https://api.github.com/repos/apache/couchdb-chttpd/issues/8","labels_url":"https://api.github.com/repos/apache/couchdb-chttpd/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/apache/couchdb-chttpd/issues/8/comments","events_url":"https://api.github.com/repos/apache/couchdb-chttpd/issues/8/events","html_url":"https://github.com/apache/couchdb-chttpd/pull/8","id":48138343,"number":8,"title":"2080 port cors","user":{"login":"chewbranca","id":5326,"avatar_url":"https://avatars.githubusercontent.com/u/5326?v=3","gravatar_id":"","url":"https://api.github.com/users/chewbranca","html_url":"https://github.com/chewbranca","followers_url":"https://api.github.com/users/chewbranca/followers","following_url":"https://api.github.com/users/chewbranca/following{/other_user}","gists_url":"https://api.github.com/users/chewbranca/gists{/gist_id}","starred_url":"https://api.github.com/users/chewbranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chewbranca/subscriptions","organizations_url":"https://api.github.com/users/chewbranca/orgs","repos_url":"https://api.github.com/users/chewbranca/repos","events_url":"https://api.github.com/users/chewbranca/events{/privacy}","received_events_url":"https://api.github.com/users/chewbranca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-11-07T22:25:53Z","updated_at":"2015-04-07T19:45:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/couchdb-chttpd/pulls/8","html_url":"https://github.com/apache/couchdb-chttpd/pull/8","diff_url":"https://github.com/apache/couchdb-chttpd/pull/8.diff","patch_url":"https://github.com/apache/couchdb-chttpd/pull/8.patch"},"body":"This brings in support for CORS into `chttpd` itself. It is based off of the `couch_httpd_cors` implementation and is a sizable refactor that cleans up a number of things and also makes the core functionality completely pure. The only IO is performed in `chttpd_cors:maybe_handle_preflight_request/1` and `chttpd_cors:headers/2` which both call `get_cors_config/1`. The function `get_cors_config` loads the server wide CORS settings and then passes that through the rest of the module. We can then test all the functionality of the module directly without needing to do any test bed server loading or module level mocking."},"comment":{"url":"https://api.github.com/repos/apache/couchdb-chttpd/issues/comments/90710334","html_url":"https://github.com/apache/couchdb-chttpd/pull/8#issuecomment-90710334","issue_url":"https://api.github.com/repos/apache/couchdb-chttpd/issues/8","id":90710334,"user":{"login":"kxepal","id":785983,"avatar_url":"https://avatars.githubusercontent.com/u/785983?v=3","gravatar_id":"","url":"https://api.github.com/users/kxepal","html_url":"https://github.com/kxepal","followers_url":"https://api.github.com/users/kxepal/followers","following_url":"https://api.github.com/users/kxepal/following{/other_user}","gists_url":"https://api.github.com/users/kxepal/gists{/gist_id}","starred_url":"https://api.github.com/users/kxepal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxepal/subscriptions","organizations_url":"https://api.github.com/users/kxepal/orgs","repos_url":"https://api.github.com/users/kxepal/repos","events_url":"https://api.github.com/users/kxepal/events{/privacy}","received_events_url":"https://api.github.com/users/kxepal/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T19:45:05Z","updated_at":"2015-04-07T19:45:05Z","body":"friendly nudge @chewbranca (:"}}