{"action":"created","issue":{"url":"https://api.github.com/repos/s3tools/s3cmd/issues/593","labels_url":"https://api.github.com/repos/s3tools/s3cmd/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/s3tools/s3cmd/issues/593/comments","events_url":"https://api.github.com/repos/s3tools/s3cmd/issues/593/events","html_url":"https://github.com/s3tools/s3cmd/pull/593","id":98184727,"number":593,"title":"Add ability to set, get and del cors policy.","user":{"login":"jrschumacher","id":46549,"avatar_url":"https://avatars.githubusercontent.com/u/46549?v=3","gravatar_id":"","url":"https://api.github.com/users/jrschumacher","html_url":"https://github.com/jrschumacher","followers_url":"https://api.github.com/users/jrschumacher/followers","following_url":"https://api.github.com/users/jrschumacher/following{/other_user}","gists_url":"https://api.github.com/users/jrschumacher/gists{/gist_id}","starred_url":"https://api.github.com/users/jrschumacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrschumacher/subscriptions","organizations_url":"https://api.github.com/users/jrschumacher/orgs","repos_url":"https://api.github.com/users/jrschumacher/repos","events_url":"https://api.github.com/users/jrschumacher/events{/privacy}","received_events_url":"https://api.github.com/users/jrschumacher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-30T14:35:27Z","updated_at":"2015-08-23T20:18:33Z","closed_at":"2015-08-23T20:18:17Z","pull_request":{"url":"https://api.github.com/repos/s3tools/s3cmd/pulls/593","html_url":"https://github.com/s3tools/s3cmd/pull/593","diff_url":"https://github.com/s3tools/s3cmd/pull/593.diff","patch_url":"https://github.com/s3tools/s3cmd/pull/593.patch"},"body":"Adds the ability to set, get and del cors policy. Based on the policy commands.\r\n\r\n```\r\n> s3cmd setcors test-cors-file s3://example\r\n\r\n> s3cmd  info s3://example\r\ns3://example (bucket):\r\n   Location:  us-east-1\r\n   Payer: BucketOwner\r\n   Expiration Rule: none\r\n   policy:    none\r\n   cors:      <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<CORSConfiguration xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"><CORSRule><AllowedOrigin>*</AllowedOrigin><AllowedMethod>GET</AllowedMethod><AllowedMethod>POST</AllowedMethod><AllowedMethod>PUT</AllowedMethod><MaxAgeSeconds>3000</MaxAgeSeconds><AllowedHeader>*</AllowedHeader></CORSRule></CORSConfiguration>\r\n   ACL:       accounts: READ\r\n   ACL:       accounts: WRITE\r\n   ACL:       accounts: READ_ACP\r\n   ACL:       accounts: WRITE_ACP\r\n\r\n> s3cmd delcors s3://example\r\ns3://example/: CORS deleted\r\n\r\n> s3cmd info s3://example\r\ns3://example (bucket):\r\n   Location:  us-east-1\r\n   Payer: BucketOwner\r\n   Expiration Rule: none\r\n   policy:    none\r\n   cors:      none\r\n   ACL:       accounts: READ\r\n   ACL:       accounts: WRITE\r\n   ACL:       accounts: READ_ACP\r\n   ACL:       accounts: WRITE_ACP\r\n```\r\n\r\nCloses #533"},"comment":{"url":"https://api.github.com/repos/s3tools/s3cmd/issues/comments/133919694","html_url":"https://github.com/s3tools/s3cmd/pull/593#issuecomment-133919694","issue_url":"https://api.github.com/repos/s3tools/s3cmd/issues/593","id":133919694,"user":{"login":"fviard","id":1053860,"avatar_url":"https://avatars.githubusercontent.com/u/1053860?v=3","gravatar_id":"","url":"https://api.github.com/users/fviard","html_url":"https://github.com/fviard","followers_url":"https://api.github.com/users/fviard/followers","following_url":"https://api.github.com/users/fviard/following{/other_user}","gists_url":"https://api.github.com/users/fviard/gists{/gist_id}","starred_url":"https://api.github.com/users/fviard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fviard/subscriptions","organizations_url":"https://api.github.com/users/fviard/orgs","repos_url":"https://api.github.com/users/fviard/repos","events_url":"https://api.github.com/users/fviard/events{/privacy}","received_events_url":"https://api.github.com/users/fviard/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T20:18:33Z","updated_at":"2015-08-23T20:18:33Z","body":"Merged. Thanks!"}}