Asynchronous cross-domain POST request via JavaScript?

后端 未结 5 1888
一整个雨季
一整个雨季 2020-12-24 09:37

I could just create a form and use that to do a POST request to any site, thing is the FORM method isn\'t asynchronous, I need to know when the page has finished loading. I

5条回答
  •  余生分开走
    2020-12-24 10:07

    IF you want to make cross domain requests you should either made a JSON call or use a serverside proxy. A serverside proxy is easy to set up, not sure why people avoid it so much. Set up rules in it so people can not use the proxy to request other things.

提交回复
热议问题