1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

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.
This commit is contained in:
Brandon Caton
2022-12-01 15:10:47 -05:00
committed by GitHub
parent 1a60cbe7fb
commit 017c4f0ba1

View File

@@ -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)