Forum Discussion
What_Lies_Bene1
Sep 10, 2014Cirrostratus
This will do it I think, sorry no way to test right now;
when HTTP_RESPONSE {
set ck [HTTP::header values "Set-Cookie"]
if { $ck ne "" } {
HTTP::header remove "Set-Cookie"
foreach acookie $ck {
if { [string tolower $acookie] contains "httponly" } {
HTTP::header insert "Set-Cookie" "${acookie}"
}
else {
HTTP::header insert "Set-Cookie" "${acookie}; HttpOnly"
}
}
}
else { return }
}