How do I send a cross-domain POST request via JavaScript?

后端 未结 17 2466
说谎
说谎 2020-11-21 05:06

How do I send a cross-domain POST request via JavaScript?

Notes - it shouldn\'t refresh the page, and I need to grab and parse the response afterwards.

17条回答
  •  我寻月下人不归
    2020-11-21 05:49

    Check the post_method function in http://taiyolab.com/mbtweet/scripts/twitterapi_call.js - a good example for the iframe method described above.

提交回复
热议问题