JSON response from jQuery get raises “Invalid label”

后端 未结 6 1216
日久生厌
日久生厌 2020-12-20 07:10
       $.ajax({
  beforeSend: function(xhr) {
 xhr.setRequestHeader(\'Authorization\', \"Basic YWRtaW46YWRtaW4=\");        
},
   url: \"https://test.com/incident.do         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 07:29

    You may want to verify that the service supports jsonp. If not you'll need to set up a server side proxy.

    Using jQuery to get json data returns invalid label error

提交回复
热议问题