mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-05 21:58:56 +08:00
fix cookie check regexp
This commit is contained in:
parent
d8043ecdef
commit
0b5e4ce77e
@ -40,7 +40,7 @@ function createWebAPIRequest(
|
||||
errorcallback
|
||||
) {
|
||||
// console.log(cookie);
|
||||
if (cookie.match(/_csrf=[^(;|$)]+;/g))
|
||||
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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user