Skip to content

Commit

Permalink
Merge branch 'master' into chore/replace-roothash-by-treecid-for-mani…
Browse files Browse the repository at this point in the history
…fest
  • Loading branch information
gmega authored Oct 25, 2024
2 parents a15bb27 + bcc1468 commit c033273
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions codex/rest/api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c033273

Please sign in to comment.