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:
parent
6ed0bcdedc
commit
d37dd766ac
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user