Jay_Prasanth_13
Oct 13, 2014Nimbostratus
After applying secure and httponly flag , 404 redirects not working
Hi, Below is the iRule I created to set secure and httponly flag.
when HTTP_RESPONSE { HTTP::cookie secure "JSESSIONID" enable set ck [HTTP::header values "Set-Cookie"] HTTP::header remove "Set-Cookie" foreach acookie $ck { if {$acookie starts_with "JSESSIONID"} { HTTP::header insert "Set-Cookie" "${acookie}; HttpOnly; Secure" } else { HTTP::header insert "Set-Cookie" "${acookie}; HttpOnly; Secure" } } }
Now the issue is after implementing this iRule , 404 redirects not working
GET output shows "500 read failed:"