AJAX Call in Node Service Takes 40+ Seconds While Same Backend Service Responds in 5 Seconds via Postman
I have a Node.js service that makes two AJAX calls to a backend server. The problem I’m facing is that the service takes more than 40 seconds to complete when accessed through an AJAX call from the frontend, but the same backend service responds within 5 seconds when tested directly using Postman. Below is the code for the Node.js service: