HTTP Proxy
SBCanvas.http() makes external HTTP requests proxied through the StreamBot backend. This bypasses CORS restrictions and keeps API keys server-side.
Making Requests
API
| Option | Type | Default | Description |
|---|---|---|---|
method | string | 'GET' | HTTP method |
headers | object | {} | Request headers |
body | any | undefined | Request body (auto-serialized) |