$.ajax({ beforeSend: function(xhr) { xhr.setRequestHeader(\'Authorization\', \"Basic YWRtaW46YWRtaW4=\"); }, url: \"https://test.com/incident.do
Are you sure the json is valid? Check it validates at JSONLint.