Remove duplicated header (#970)

This commit is contained in:
Arnaud 2024-10-25 10:23:35 +01:00 committed by Slava
parent 0582611077
commit 6d04ae42c9
No known key found for this signature in database
GPG Key ID: 351E7AA9BD0DFEB8
1 changed files with 0 additions and 4 deletions

View File

@ -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(