1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00

api: fix CORS headers, use concat instead of extend (PROJQUAY-4163) (#1445)

Fixes issue where we send large header on CORS
This commit is contained in:
Syed Mushtaq Ahmed 2022-07-19 17:52:09 -04:00 committed by GitHub
parent 6ed0bcdedc
commit d37dd766ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ def crossorigin(anonymous=True):
credentials = False
if cors_origin != "*":
headers.extend(SINGLE_ORIGIN_CROSS_DOMAIN_HEADERS)
headers = BASE_CROSS_DOMAIN_HEADERS + SINGLE_ORIGIN_CROSS_DOMAIN_HEADERS
# for single origin requests, allow cookies
credentials = True