Is there a way to get the response headers from a dhx.ajax request, specifically dhx.ajax.get? I want to get the Content-Type for switching the handling of the returned data (html vs image).
Hello @kcasarez,
Both ajax.post/ajax.get return only data through promise, so you can’t access response headers directly. You can only return it as part of data from the backend, or check the data in order to detect its type.
Kind regards,