jeudi 16 juin 2016

Laravel 5.1 ajax Response always connection reset

I have problem with laravel ajax Response. the request is GET not POST This is the api url: http://ift.tt/1Qa7NZn and i never receive ajax response. in my chrome i receive error net::ERR_CONNECTION_RESET

but when i go to api url directly from chrome i get the json response and it's correct. this only happens for ajax request and also i have "Provisional headers are shown" in my ajax request. I'm using ember for ajax request, but i also try using Jquery $.getJSON and same result happens

i read some discussion about "Laravel Connection Reset" and i try to disable opcache but this is still happening.

This is my enviroment

  • PHP Version 7.0
  • Laravel 5.1.39(LTS)
  • Ubuntu 14.04.4 LTS
  • Jquery 1.11.3
  • Ember 2.0.2

Why the ajax request always "Connection Reset" ? What is the possible cause for this ? How to fix the problem ?

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire