jQuery getJSON to external PHP page

前端 未结 3 1123
花落未央
花落未央 2020-12-14 12:32

I\'ve been trying to make an AJAX request to an external server. I\'ve learned so far that I need to use getJSON to do this because of security reasons ?

Now, I can\

3条回答
  •  死守一世寂寞
    2020-12-14 12:58

    Be careful with moff's answer. It's got a common XSS vulnerability: http://www.metaltoad.com/blog/using-jsonp-safely

提交回复
热议问题