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,
});
Related
- Platform limits — the 32 MiB response body cap
- Service bindings — calling another deployment on the same node instead, which does not go through
outbound