Ajax:附加URL

时间:2018-12-18 04:33:02

标签: javascript ajax form-data

将网站附加到Formdata时,ajax调用出现错误403。 我该如何解决?

var fd = new FormData();

fd.append('siteURL', 'http://test.jp/lp/index.html');
fd.append('owner', 'You Me Me');

$.ajax({
    type: 'post',
    url: Ajax_call.ajaxurl,
    data: fd,
    processData: false,
    contentType: false,
    dataType: 'json',  
    success: function(result) {

    },
    error: function(error) {

    }
});

0 个答案:

没有答案