TypeScript Egress
Egress Allowlist
Section titled “Egress Allowlist”| Interface | Purpose |
|---|---|
runtime.egress.enable() | Enable egress interception. |
runtime.egress.allow(hosts) | Add allowed hosts or URLs. |
runtime.egress.list() | List allowed hosts. |
runtime.egress.remove(host) | Remove one allowed host. |
await runtime.egress.enable();await runtime.egress.allow(["https://example.com", "api.github.com"]);
console.log(await runtime.egress.list());
await runtime.egress.remove("example.com");