AJAX XMLHttpRequest POST

后端 未结 2 1230
长情又很酷
长情又很酷 2020-12-03 08:17

I\'m trying to write an XMLHttpRequest using the POST method. I have managed to use XMLHttpRequest in the past using the GET method but am struggling with POST.

Here

2条回答
  •  有刺的猬
    2020-12-03 08:47

    Okay I've managed to sort it.

    Odd reason though, might be sandbox security related, but rather than have the full URL address, I have just used the relative path to the file, and now it works.

    Thank you all for your support.

提交回复
热议问题