Accept header not working

Accept header not working

I have to call for an web service which requires a Accept header and then it returns a json result. I test the service with "Postman" and got the response succesfully.but its not working when trying to do programatically

  1.  $(document).ready(function () {

  2.             var xhr = new XMLHttpRequest();
  3.             $.ajax({
  4.                 url: 'http://102.22.169.113:9763/services/charaka_DataService/select_all_configs_operation?config_key=MAX',
  5.                 type: 'GET',
  6.                 dataType: 'json',
  7.                 accept: {
  8.                     json: 'application/json/salaya'
  9.                 },
  10.                 cache: false,
  11.                 success: function (data) {
  12.                     alert(data);
  13.                 },
  14.                 error: function (xhr, errorType, exception) {
  15.                     alert('request failed :' + exception);
  16.                 }
  17.             });
  18.         });