HttpGetOptions - itsManeka/amazing-scraper GitHub Wiki
amazing-scraper / HttpGetOptions
Defined in: src/application/ports/HttpClient.ts:15
Optional per-request guards supported by HttpClient.get.
-
allowedRedirectHosts: when defined, the client MUST reject any redirect whose target hostname is not listed. This is a defense-in-depth control against SSRF via chained cross-host redirects. When the array is empty or omitted, no redirect hostname restriction is applied and the client follows redirects according to its default policy.
optionalallowedRedirectHosts:string[]
Defined in: src/application/ports/HttpClient.ts:16