Our state of the art Gantt chart


Post by victor.lacerda »

Hello!
Is it possible to make CRUD Manager perform XML HTTP Requests (XHR) instead of using Fetch API?
On our setup we have an Angular application in which CRUD Manager makes fetch requests that are sent to our Node proxy. We noticed the request hits the proxy but doesn't hit our Gateway microservice. Therefore it fails to reach our Service microservice behind the Gateway.


Post by mats »

Sounds like something that would be easier to fix in your backend..? XHR is legacy these days and the fetch API is so much simpler to work with.

It's not supported out of the box, but if you really want to try changing this, you can study the code in AjaxTransport.js

    sendRequest(request) {

Which calls

            ajaxPromise = AjaxHelper.fetch(requestConfig.url, fetchOptions);

You could try overriding AjaxHelper.fetch to use XHR instead perhaps.


Post by victor.lacerda »

Understood Mats, thanks for your feedback, we will debug the communication between our front-end and back-end. I we are not able to find the root of the problem, we will use XHR instead by Overriding the method.


Post Reply