Not able to Fetching the html of rendered-form content in react

On hitting below API:
http://127.0.0.1:8085/engine-rest/task/task-id/rendered-form - took from documentation - Get Rendered Task Form | docs.camunda.org

I am able to get the HTML response (XML or JSON) content when hitting from the postman

but when hitting the same URL from reactjs application or directly in the browser
getting error like below

My React Js snippet:
image

Can anyone assist on how to basically render the user task form in custom UI (React Js in my case)