Skip to content
sproutboat
Esc
navigateopen⌘Jpreview
On this page

Outbound fetch

fetch() only reaches hosts explicitly listed in the outbound allowlist.

Configuration

"outbound": ["api.stripe.com", "hooks.slack.com"]

Usage

const res = fetch("https://api.stripe.com/v1/charges", {
  method: "POST",
  headers: { authorization: "Bearer " + env.STRIPE_KEY },
  body,
});
  • Platform limits — the 32 MiB response body cap
  • Service bindings — calling another deployment on the same node instead, which does not go through outbound

Was this page helpful?