I have following configuration. Website on domain1 makes ajax-request (jQuery.ajax) to API on domain2, I can see in error_log api script works fine, but sniffer on client side detects Reset by peer error with no response body. This is strange case because there are lot of other similar websites communicating with this api via cross domain request and everything's ok. Can someone give me the clue how to track this? I'm supplying all necessary http-headers on server
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET');
header('Access-Control-Allow-Headers: Origin,cache-control,content-type,man,messagetype,soapaction');