Kind: Function
Source: atloria-monorepo/apps/api/src/technical-docs/ssrf.ts
Validate that a URL is http(s) and does not point at a private address (by hostname pattern or DNS resolution). Throws BadRequestException.
Signature
tsasync function assertPublicHttpUrl(rawUrl: string): Promise<URL>
Parameters
| Name | Type |
|---|---|
rawUrl | string |
Returns: Promise<URL>
Was this page helpful?