Skip to content

Stay GM_xmlhttpRequest 不支持 FormData #91

Open
@ShaoxiongXu

Description

Stay 版本: 2.6.2

测试代码

let formData = new FormData();
formData.append('a', 1);
formData.append('b', 2);
GM_xmlhttpRequest({
    method: 'POST',
    url: `${host}/api/xxx`,
    data: formData,
    onload: function (response) {

    },
    onerror: function (error) {

    }
});

使用 FormData 发送时 Request Payload:

image

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions