Last active
October 20, 2021 09:43
-
-
Save meineerde/eedbc53fd28984f60907 to your computer and use it in GitHub Desktop.
Set all cookies set in the HTTP response to HttpOnly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acl httponly_cookie res.hdr(Set-Cookie),lower -m sub httponly | |
rspirep ^(set-cookie:.*) \1;\ HttpOnly if !httponly_cookie |
将服务器返回的Set-Cookie值中的 Secure 删除
http-response replace-header Set-Cookie (JSSSSIONID=[^;]);\ Secure(.) \1\2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI,
Can i set cookie for JSESSIONID only. means i dont want to user .*
Like : -
rspirep ^(set-cookie:JSSSSIONID) \1;\ HttpOnly