Forum Discussion

Imtiyaz's avatar
Icon for Nimbostratus rankNimbostratus
Feb 11, 2024

Mixed content error



I am trying to fix a mixed content error in F5 version 15.1.10


I have applied the iRule from the below website.


Please let me know if anything is missing.



4 Replies

  • patience my young padawan ;-)
    Posting a question on sunday doesn't always get you a response on the same day.

    Based on what you posted there is not much to work with.

    Are you able to check if the webserver is sending plain data and not compressed data to the BIG-IP?



    • Imtiyaz's avatar
      Icon for Nimbostratus rankNimbostratus

      Hey Kees,

      I am not working on the application, however bypassing the F5 everything works fine.

      Attached is the error from the developers tool.

  • 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