{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/8528","repository_url":"https://api.github.com/repos/ceph/ceph","labels_url":"https://api.github.com/repos/ceph/ceph/issues/8528/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/8528/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/8528/events","html_url":"https://github.com/ceph/ceph/pull/8528","id":147339503,"number":8528,"title":"rgw: Set Access-Control-Allow-Origin to a Asterisk if allowed in a rule","user":{"login":"wido","id":326786,"avatar_url":"https://avatars.githubusercontent.com/u/326786?v=3","gravatar_id":"","url":"https://api.github.com/users/wido","html_url":"https://github.com/wido","followers_url":"https://api.github.com/users/wido/followers","following_url":"https://api.github.com/users/wido/following{/other_user}","gists_url":"https://api.github.com/users/wido/gists{/gist_id}","starred_url":"https://api.github.com/users/wido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wido/subscriptions","organizations_url":"https://api.github.com/users/wido/orgs","repos_url":"https://api.github.com/users/wido/repos","events_url":"https://api.github.com/users/wido/events{/privacy}","received_events_url":"https://api.github.com/users/wido/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceph/ceph/labels/bug%20fix","name":"bug fix","color":"e11d21"},{"url":"https://api.github.com/repos/ceph/ceph/labels/needs-review","name":"needs-review","color":"d4c5f9"},{"url":"https://api.github.com/repos/ceph/ceph/labels/rgw","name":"rgw","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"smithfarm","id":3974844,"avatar_url":"https://avatars.githubusercontent.com/u/3974844?v=3","gravatar_id":"","url":"https://api.github.com/users/smithfarm","html_url":"https://github.com/smithfarm","followers_url":"https://api.github.com/users/smithfarm/followers","following_url":"https://api.github.com/users/smithfarm/following{/other_user}","gists_url":"https://api.github.com/users/smithfarm/gists{/gist_id}","starred_url":"https://api.github.com/users/smithfarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smithfarm/subscriptions","organizations_url":"https://api.github.com/users/smithfarm/orgs","repos_url":"https://api.github.com/users/smithfarm/repos","events_url":"https://api.github.com/users/smithfarm/events{/privacy}","received_events_url":"https://api.github.com/users/smithfarm/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ceph/ceph/milestones/5","html_url":"https://github.com/ceph/ceph/milestones/hammer","labels_url":"https://api.github.com/repos/ceph/ceph/milestones/5/labels","id":862053,"number":5,"title":"hammer","description":"","creator":{"login":"liewegas","id":433031,"avatar_url":"https://avatars.githubusercontent.com/u/433031?v=3","gravatar_id":"","url":"https://api.github.com/users/liewegas","html_url":"https://github.com/liewegas","followers_url":"https://api.github.com/users/liewegas/followers","following_url":"https://api.github.com/users/liewegas/following{/other_user}","gists_url":"https://api.github.com/users/liewegas/gists{/gist_id}","starred_url":"https://api.github.com/users/liewegas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liewegas/subscriptions","organizations_url":"https://api.github.com/users/liewegas/orgs","repos_url":"https://api.github.com/users/liewegas/repos","events_url":"https://api.github.com/users/liewegas/events{/privacy}","received_events_url":"https://api.github.com/users/liewegas/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":586,"state":"open","created_at":"2014-11-11T16:32:01Z","updated_at":"2016-06-01T20:47:12Z","due_on":"2017-05-04T17:00:00Z","closed_at":null},"comments":6,"created_at":"2016-04-11T07:29:19Z","updated_at":"2016-06-01T21:01:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/8528","html_url":"https://github.com/ceph/ceph/pull/8528","diff_url":"https://github.com/ceph/ceph/pull/8528.diff","patch_url":"https://github.com/ceph/ceph/pull/8528.patch"},"body":"http://tracker.ceph.com/issues/15839\r\n\r\nBefore this patch the RGW would respond with the Origin send by the client in the request\r\nif a wildcard/asterisk was specified as a valid Origin.\r\n\r\nThis patch makes sure we respond with a header like this:\r\n\r\n  Access-Control-Allow-Origin: *\r\n\r\nThis way a resource can be used on different Origins by the same browser and that browser\r\nwill use the content as the asterisk.\r\n\r\nWe also keep in mind that when Authorization is send by the client different rules apply.\r\nIn the case of Authorization we may not respond with an Asterisk, but we do have to\r\nadd the Vary header with 'Origin' as a value to let the browser know that for different\r\nOrigins it has to perform a new request.\r\n\r\nMore information: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS\r\n\r\nFixes: #15348\r\n\r\nSigned-off-by: Wido den Hollander <wido@42on.com>\r\n\r\nConflicts:\r\n\tsrc/rgw/rgw_rest.cc\r\n\r\nThis is the backport fix for #8441"},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/223123336","html_url":"https://github.com/ceph/ceph/pull/8528#issuecomment-223123336","issue_url":"https://api.github.com/repos/ceph/ceph/issues/8528","id":223123336,"user":{"login":"smithfarm","id":3974844,"avatar_url":"https://avatars.githubusercontent.com/u/3974844?v=3","gravatar_id":"","url":"https://api.github.com/users/smithfarm","html_url":"https://github.com/smithfarm","followers_url":"https://api.github.com/users/smithfarm/followers","following_url":"https://api.github.com/users/smithfarm/following{/other_user}","gists_url":"https://api.github.com/users/smithfarm/gists{/gist_id}","starred_url":"https://api.github.com/users/smithfarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smithfarm/subscriptions","organizations_url":"https://api.github.com/users/smithfarm/orgs","repos_url":"https://api.github.com/users/smithfarm/repos","events_url":"https://api.github.com/users/smithfarm/events{/privacy}","received_events_url":"https://api.github.com/users/smithfarm/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T21:01:02Z","updated_at":"2016-06-01T21:01:02Z","body":"@wido Would you care to stage the jewel backport as well? The tracker URL is http://tracker.ceph.com/issues/16112"}}
{"actor":{"display_login":"smithfarm"}}