Symfony3 JsonResponse no status available

70 Views Asked by At

I sending over the Controller an JSON response

$response = new JsonResponse($array);
return $response;

When I call the controller direct over the browse there is a Status 200, but over an Ajax call Symfony don't receives any status. Here the screen of the debugging toolbar:

enter image description here

1

There are 1 best solutions below

0
On

The problem was the AdBlocker. In my URL I had the keyword /advertiser/ and thats why the Adblocker has blocked the request.

Without Adblocker or changing the URL works fine!