cross-request icon indicating copy to clipboard operation
cross-request copied to clipboard

自定义Host无效

Open tenlee2012 opened this issue 4 years ago • 0 comments

crossRequest({
        url: 'http://httpbin.org/post',
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
            'Host': 'baidu.com'
        },
        data: {
            a: 1,
            b: 2,
            c: {
                t: 1
            }
        },
        success: function (res) {
            console.log(arguments)
        }
    })

实际结果Host = httpbin.org

tenlee2012 avatar Mar 10 '20 02:03 tenlee2012