Add files via upload

This commit is contained in:
gaotianliuyun
2023-05-20 21:40:32 +08:00
committed by GitHub
parent ae0a358dd6
commit 8f41ed5897
9 changed files with 150 additions and 102 deletions

View File

@@ -2045,6 +2045,18 @@ function init(ext) {
if(['MOBILE_UA','PC_UA','UC_UA','IOS_UA','UA'].includes(v)){
rule.headers[k] = eval(v);
}
}else if(k.toLowerCase() === 'cookie'){
let v = rule.headers[k];
if(v && v.startsWith('http')){
console.log(v);
try {
v = fetch(v);
console.log(v);
rule.headers[k] = v;
}catch (e) {
console.log(`${v}获取cookie发生错误:`+e.message);
}
}
}
}
}catch (e) {