Skip to content

Commit

Permalink
Test SSRF Filter on Cloud (#2647)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed Jun 13, 2024
1 parent b1ec60f commit c8826de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/back-end/src/util/http.util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetch, { RequestInit, Response } from "node-fetch";
import { ProxyAgent } from "proxy-agent";
import ssrfReqFilter from "ssrf-req-filter";
//import ssrfReqFilter from "ssrf-req-filter";
import { logger } from "./logger";
import { IS_CLOUD, USE_PROXY } from "./secrets";

Expand All @@ -20,7 +20,9 @@ export function getHttpOptions(url?: string) {
return { agent: new ProxyAgent() };
}
if (url && IS_CLOUD) {
return { agent: ssrfReqFilter(url) };
// Temporarily disable ssrf filter to see if it's the cause of Node internal errors
// return { agent: ssrfReqFilter(url) };
return {};
}
return {};
}
Expand Down

0 comments on commit c8826de

Please sign in to comment.