Calling REST API from Client Side

We have embedded an Text editor app, an external application in Pega UI section using the URL utilizing HTML-iframe tags(custom section). In the embedded application, user can edit the content. To save the changes, external application has given a REST API to update the changes to their server. The service, in the response http header will return an cookie to save the update done in the editor UI.

When we call the REST API using connect-REST from an Activity or Data transform, changes are not saved as Pega is making the service call from the application server whereas to save the changes that are in the browser, the service call should be made from the browser, that is client side. I am reluctant to use Java script due to upgrade considerations but I don’t see any other option to call the service from client Side. Is there anyway to achieve this without using Java script or custom coding?
Note: The Peg application version in 8.4

@GanapathyG In Pega 8.4, there is no out-of-the-box feature to call a REST API directly from the client-side without using JavaScript or custom coding. JavaScript is the primary method for making client-side API calls in web applications. If you need to call the REST API from the client-side, you will have to use JavaScript or a custom solution. However, you should carefully consider the implications of using custom code and its impact on future upgrades

This answer came from a Pega gen-AI assistant using the below references.

As a Support Center moderator, I reviewed the answer and references for accuracy

Development of web self-service interface

Considerations for choosing between a Pega API and a custom API

Adding JavaScript code to Pega Platform applications when sourcing large data pag