We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa6fce commit e258083Copy full SHA for e258083
1 file changed
Script/unHttpOnly.js
@@ -2,8 +2,8 @@ const $ = new Env('移除HttpOnly');
2
3
const modifiedHeaders = $response.headers;
4
const cookies = $response.headers['Set-Cookie']
5
- .replace(/HTTPONLY|httponly|HttpOnly/g, '')
6
- .replace(/((Expires|EXPIRES)=.+?),/g, '$1@')
+ .replace(/HttpOnly/gi, '')
+ .replace(/(Expires=.+?),/gi, '$1@')
7
.split(', ');
8
9
let key = 'Set-Cookie';
0 commit comments