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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user