diff --git a/codex/rest/api.nim b/codex/rest/api.nim index 66279385..b30718ba 100644 --- a/codex/rest/api.nim +++ b/codex/rest/api.nim @@ -222,10 +222,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(