jaiAdityaSingla
Jan 28, 2016Nimbostratus
Check the VS port to determine if connection is SSL or not, help me to fix it
when CLIENT_ACCEPTED {
Check the VS port to determine if connection is SSL or not
switch [TCP::local_port] { "443" { set proto "https" } default { set proto "http" } }} when HTTP_RESPONSE { set chk_cookies [HTTP::cookie names] foreach cookie $chk_cookies { Rewrite Cookies to ensure the version is Cookie version is correct set cookie_value [HTTP::cookie $cookie] HTTP::cookie remove $cookie HTTP::cookie insert name $cookie value $cookie_value path / version 1 Set HttpOnly for all cookies HTTP::cookie httponly $cookie enable Set Secure if connection is SSL if {$proto=="https"}{ HTTP::cookie secure $cookie enable } }}