Merge pull request #17632 from joke-lee/RGW-CORS-Access-Control-Allow-Origin-HEADER-WEBSITE

rgw: return 'Access-Control-Allow-Origin' header when the set and delete bucket website through XMLHttpRequest

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Yuri Weinstein 2017-09-13 08:20:17 -07:00 committed by GitHub
commit e680ed47fc

View File

@ -1014,7 +1014,7 @@ void RGWSetBucketWebsite_ObjStore_S3::send_response()
if (op_ret < 0)
set_req_state_err(s, op_ret);
dump_errno(s);
end_header(s);
end_header(s, this, "application/xml");
}
void RGWDeleteBucketWebsite_ObjStore_S3::send_response()
@ -1024,7 +1024,7 @@ void RGWDeleteBucketWebsite_ObjStore_S3::send_response()
}
set_req_state_err(s, op_ret);
dump_errno(s);
end_header(s);
end_header(s, this, "application/xml");
}
void RGWGetBucketWebsite_ObjStore_S3::send_response()