1

In my jsp page I am using this ajax call for one button :

$.ajax({
  type: 'post',
  url: 'some url',
  //url: $("#ssDHURL").val() + '/metaDataTests',
  data: {
      'type': metaTypeString,
      stringParam: metaIpStr,
  },
  traditional: true,
  dataType: 'html',
   success: function (response)
  {
  }

Above ajax call is working for all browser but only not working for mac safari is their any help how to solve this problem?

In Mac-Pc Safari browser it showing error like:

xmlHttprequest cannot load:some url: not allowed to request resource

Bharata
  • 13,509
  • 6
  • 36
  • 50
123Gaurav
  • 19
  • 1
  • 1
    Possibly dupe of https://stackoverflow.com/questions/16824661/cors-request-not-working-in-safari – mplungjan Jul 02 '18 at 09:40
  • are you using the same 'some url' for all the browsers and under the same situations? It looks for me to a session permissions issue, and probably you will have to send too the csrf token in order to indicate that the request comes from a specific session – Jorge Peris Jul 02 '18 at 09:40
  • @Jorge Yes I am using same url for all browser but it is only not working in safari browser.... – 123Gaurav Jul 02 '18 at 09:45
  • Is it a cross-origin request maybe? Looks like Safari does not support wild card `*` in `Access-Control-Allow-Headers`. – skobaljic Jul 02 '18 at 11:45

0 Answers0