mirror of
https://github.com/ceph/ceph
synced 2024-12-15 07:56:12 +00:00
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:
commit
e680ed47fc
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user