mgr/dashboard: allow PUT in CORS

Fixes: https://tracker.ceph.com/issues/62222
Signed-off-by: Nizamudeen A <nia@redhat.com>
This commit is contained in:
Nizamudeen A 2023-07-25 14:51:40 +05:30
parent 104bec4041
commit 8da2a2c0e2

View File

@ -261,7 +261,7 @@ class CherryPyConfig(object):
resp_head['Access-Control-Allow-Origin'] = req_header_origin_url
ac_method = req_head.get('Access-Control-Request-Method', None)
allowed_methods = ['GET', 'POST']
allowed_methods = ['GET', 'POST', 'PUT']
allowed_headers = [
'Content-Type',
'Authorization',