Forum Discussion
Imtiyaz
Feb 11, 2024Nimbostratus
Mixed content error
Hello, I am trying to fix a mixed content error in F5 version 15.1.10 I have applied the iRule from the below website. https://my.f5.com/manage/s/article/K31100432 Please let me k...
Feb 12, 2024
Could you replace the HTTP_RESPONSE event with this?
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
HTTP::header remove Server
HTTP::header replace Location [string map {"http://" "https://"} [string tolower [HTTP::header Location]]]
}
# Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
# Replace http:// with https://
STREAM::expression {@http://@https://@}
# Enable the stream filter for this response only
STREAM::enable
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects