0
 $.ajax({ 
 headers:{
 "X-Mashape-Key": "P635I6rEYTmsh4jWyNQz8DB7xdR9p1kDVsejsnsJDPj4jTIfMy",
  "Content-Type": "application/x-www-form-urlencoded",
  "Accept": "application/json"
},
url:'https://andruxnet-random-famous-quotes.p.mashape.com/',
type:"POST",
success:function(data){...}
})

In one of my project,my request code is posted above.In this project,l use an webapi,so l wanna ask why it worked without JSONP and doesn't it contain the problem of cross-domain?

So I am a little confused about when to use JSONP?Can anyone help me and hhank you guys in advance!

Mr.tang
  • 85
  • 2
  • 7

0 Answers0