From 56432f3df2a5a91faf7f4288cc1b8c93bfb6f47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Fri, 11 Dec 2015 13:13:29 +0100 Subject: [PATCH] [Backport] Add 'x-lazy-pagination' to COORS_ALLOWED_HEADERS --- taiga/base/middleware/cors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taiga/base/middleware/cors.py b/taiga/base/middleware/cors.py index b4ed438f..a27ada91 100644 --- a/taiga/base/middleware/cors.py +++ b/taiga/base/middleware/cors.py @@ -22,8 +22,8 @@ COORS_ALLOWED_ORIGINS = "*" COORS_ALLOWED_METHODS = ["POST", "GET", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD"] COORS_ALLOWED_HEADERS = ["content-type", "x-requested-with", "authorization", "accept-encoding", - "x-disable-pagination", "x-host", - "x-session-id"] + "x-disable-pagination", "x-lazy-pagination", + "x-host", "x-session-id"] COORS_ALLOWED_CREDENTIALS = True COORS_EXPOSE_HEADERS = ["x-pagination-count", "x-paginated", "x-paginated-by", "x-pagination-current", "x-pagination-next", "x-pagination-prev",