]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: allow PUT in CORS
authorNizamudeen A <nia@redhat.com>
Tue, 25 Jul 2023 09:21:40 +0000 (14:51 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 31 Jul 2023 10:22:37 +0000 (15:52 +0530)
Fixes: https://tracker.ceph.com/issues/62222
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 8da2a2c0e296a94a2bfab6ab68480d2e33e7d84e)

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',