提交 94a54048 编写于 作者: B binaryify 提交者: GitHub

Merge pull request #244 from nondanee/bandage

解决403 illegal request
......@@ -40,6 +40,9 @@ function createWebAPIRequest(
errorcallback
) {
// console.log(cookie);
if (cookie.match(/_csrf=[^(;|$)]+;/g))
data.csrf_token = cookie.match(/_csrf=[^(;|$)]+/g)[0].slice(6);
else data.csrf_token = "";
const proxy = cookie.split("__proxy__")[1];
cookie = cookie.split("__proxy__")[0];
const cryptoreq = Encrypt(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册