Skip to content

Commit e258083

Browse files
committed
Update unHttpOnly.js
1 parent caa6fce commit e258083

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Script/unHttpOnly.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const $ = new Env('移除HttpOnly');
22

33
const modifiedHeaders = $response.headers;
44
const cookies = $response.headers['Set-Cookie']
5-
.replace(/HTTPONLY|httponly|HttpOnly/g, '')
6-
.replace(/((Expires|EXPIRES)=.+?),/g, '$1@')
5+
.replace(/HttpOnly/gi, '')
6+
.replace(/(Expires=.+?),/gi, '$1@')
77
.split(', ');
88

99
let key = 'Set-Cookie';

0 commit comments

Comments
 (0)