Route direct fetch calls, setup requests, gateway usage checks, and ops WebSocket connections through the configured API base instead of assuming same-origin backend paths. Also derive OAuth callback suggestions from the configured API base so split frontend/API deployments show usable redirect URLs.