jQuery cross domain POST shenanigans

前端 未结 4 1199
北海茫月
北海茫月 2020-12-09 10:16

I\'m trying to authenticate to an API, which only allows you to authenticate using a POST with JSON as form data, in the format of {\"username\":\"myusername\",\"password\":

4条回答
  •  时光取名叫无心
    2020-12-09 10:43

    For cross domain stuff use JSONP (search for crossDomain)

    http://www.ibm.com/developerworks/library/wa-aj-jsonp1/

提交回复
热议问题