Allow Mixed content on Sharepoint Via iRule
I am looking for an iRule that handles mixed content not showing up on one of our ssl offloading vips. There are some articles in DEV central about this but I have been unsuccessful thus far. I have applied the default stream profile to the vip and applied this irule below. The site loads png files and jpegs but any sharepoint .css or .aspx files don't load unless user allows insecure content. Any way around this through the F5?
when HTTP_REQUEST {
# Disable the stream filter for client requests
STREAM::disable
}
when HTTP_RESPONSE
{
# Disable the stream filter for server responses
STREAM::disable
# Enable the stream filter for text responses only
if {[HTTP::header value Content-Type] contains "text"}
{
# Replace 'old_text' with 'new_text'
STREAM::expression {@old_text@new_text@}
# Enable the stream filter
STREAM::enable }
}
Thank you,
Brady