]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: allow PUT in CORS 52622/head
authorNizamudeen A <nia@redhat.com>
Tue, 25 Jul 2023 09:21:40 +0000 (14:51 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 28 Jul 2023 13:05:20 +0000 (18:35 +0530)
Fixes: https://tracker.ceph.com/issues/62222
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/module.py

index e50bb2adb5f69fff3159636f751bdeb81c71b858..efef273bda06d79dedc66351a4e0cab21f0c53e4 100644 (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',