The following code works perfectly in Chrome and Safari, but bonks in Firefox.
First the javascript:
$.ajax('/sn.php',{
    type: 'POST',
    dataType: 'json',
    data: {...stuff},
    complete: function(response){
        console.log(response);
        // do stuff with response...
    }
});
and the php relay (on MY server) that uses cURL() to POST or GET from another domain:
// setup cURL...
$token = curl_exec($handle);
echo $token;
error_log('token='.$token);
$token shows up perfectly in the error_log, and everything works perfect in Chrome and Safari, but in Firefox the ajax status is "error" and the responseText is blank. Been banging my head against the wall for a couple days on this one.
 
     
     
     
    