]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: allow PUT in CORS 52704/head
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:04 +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 200aac8c7e79091cff056925ad6493a91593403d..b7fc41ffb57869db1cec211a4448d10b6b685ce0 100644 (file)
@@ -263,7 +263,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',