From 017c4f0ba1f28acdb22924f3f660f2dbbe4a98ff Mon Sep 17 00:00:00 2001 From: Brandon Caton Date: Thu, 1 Dec 2022 15:10:47 -0500 Subject: [PATCH] cors: Adding missing method type (PROJQUAY-4800) (#1651) The PUT method has not been added to the list of cors methods, causing PUT requests to fail. --- util/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/request.py b/util/request.py index 393c53051..c66e4affe 100644 --- a/util/request.py +++ b/util/request.py @@ -24,7 +24,7 @@ def get_request_ip(): def crossorigin(anonymous=True): - cors_methods = ["GET", "HEAD", "OPTIONS", "POST", "DELETE"] + cors_methods = ["GET", "HEAD", "OPTIONS", "POST", "DELETE", "PUT"] def decorate(func): @wraps(func)