Asked by kajal on Sep 2, 2024
Kajal's UI extension button uses fetch() to call an external API endpoint upon clicking, but the request fails.
Answered by Hyago Vieira Alves
Direct client-side fetch calls to external APIs are not permitted from HubSpot UI extensions. Such calls must be routed through a HubSpot serverless function, which can then make the external API request.