From 13c229bb960e851074fa8d1da19c4f3ec481cbf6 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 1 Jul 2024 20:43:54 +0100 Subject: [PATCH] fix: allow count header --- packages/api/src/routes/nfts-list.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/api/src/routes/nfts-list.js b/packages/api/src/routes/nfts-list.js index 9d9d9c0910..68a56f8c27 100644 --- a/packages/api/src/routes/nfts-list.js +++ b/packages/api/src/routes/nfts-list.js @@ -40,6 +40,12 @@ export async function nftList(event, ctx) { ok: true, value: data.uploads?.map((n) => toNFTResponse(n)), }, - data.count != null ? { headers: { Count: data.count.toString() } } : {} + data.count != null + ? { + headers: { + 'Access-Control-Allow-Headers': 'Count', + Count: data.count.toString() + } + } : {} ) }