From bcc1468130783b68150240b9e684d0f0ca1da81a Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 25 Oct 2024 10:23:35 +0100 Subject: [PATCH] Remove duplicated header (#970) --- codex/rest/api.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/codex/rest/api.nim b/codex/rest/api.nim index 66279385..c99051f0 100644 --- a/codex/rest/api.nim +++ b/codex/rest/api.nim @@ -280,10 +280,6 @@ proc initDataApi(node: CodexNodeRef, repoStore: RepoStore, router: var RestRoute Http400, $cid.error(), headers = headers) - if corsOrigin =? allowedOrigin: - resp.setCorsHeaders("GET", corsOrigin) - resp.setHeader("Access-Control-Headers", "X-Requested-With") - without manifest =? (await node.fetchManifest(cid.get())), err: error "Failed to fetch manifest", err = err.msg return RestApiResponse.error(