Laravel在firefox中调用ajax后没有返回响应

时间:2017-08-16 11:36:01

标签: ajax laravel response

基本上是进行了ajax调用,状态OK,在其他浏览器中返回响应,但在Firefox中,http响应根本没有返回。

$.ajax({
    type    : "GET",
    url     : 'schools_courses_calendar/'+eventId+'/associate_spot/'+spotId,
    success : function(response) {
        //console.log(response) logs an 'empty string'
        table =  $('#school_upcoming_courses').dataTable();
        table.fnDraw();
        $('#confirm-associate #spot_id').val('');
        $('#confirm-associate #event_id').val('');
    },
    error   : function(data) {
        alert('Error!');
        //console.error(data);
    }
})

return \Response::json(array(
    'success' => true,
    'errors'  => '',
    'spot'    => $l_aResponse['body']['spot']
));

enter image description here

0 个答案:

没有答案