Skip to content

自定义Host无效 #13

@tenlee2012

Description

@tenlee2012
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions