Asked by kajal on Oct 10, 2024
Kajal is trying to use the native `fetch` API within a UI extension's React component to send data to an external URL, but it results in a network error.
Answered by Hyago Vieira Alves
Hyago clarified that UI extensions cannot make direct client-side fetch requests to external endpoints due to security constraints (lack of DOM access). The request must be mediated through a HubSpot serverless function.