I created an AJAX XD request, the call done well, in Chrome everything works well and in response I can get HTTP headers, but in Firefox, I can't. I already have all origin headers declared and so on.
Can someone help?
$.ajax({
url: 'myurl',
type: "POST",
cache: false,
dataType: "text",
crossDomain: true,
async: true,
xhrFields: {
withCredentials: false
}
})
.done(function( value, type, obj ) {
console.log('success', arguments, obj.getAllResponseHeaders());
});
On server it's defined the headers:
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Origin: _URL_');
header('Access-Control-Expose-Headers: some_id,Content-Range');