Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stay GM_xmlhttpRequest 不支持 FormData #91

Open
ShaoxiongXu opened this issue Apr 12, 2024 · 0 comments
Open

Stay GM_xmlhttpRequest 不支持 FormData #91

ShaoxiongXu opened this issue Apr 12, 2024 · 0 comments

Comments

@ShaoxiongXu
Copy link

ShaoxiongXu commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant