Remove duplicate header

This commit is contained in:
Arnaud 2024-10-25 12:25:29 +02:00
parent 40068512a6
commit 5f0b9804bb
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 0 additions and 4 deletions

View File

@ -222,10 +222,6 @@ proc initDataApi(node: CodexNodeRef, repoStore: RepoStore, router: var RestRoute
Http400, Http400,
$cid.error(), headers = headers) $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: without manifest =? (await node.fetchManifest(cid.get())), err:
error "Failed to fetch manifest", err = err.msg error "Failed to fetch manifest", err = err.msg
return RestApiResponse.error( return RestApiResponse.error(