Forum Discussion

JimmyJose's avatar
JimmyJose
Icon for Nimbostratus rankNimbostratus
May 15, 2016

Mixed Content issue

Hi All,

 

Following is the error encountered while trying to access a site through LTM.

 

"Mixed Content: The page at 'https://site.com/abc.aspx' was loaded over HTTPS, but requested an insecure resource 'http://site.com:9999/ABC/abc.aspx'. This request has been blocked; the content must be served over HTTPS."

 

Created an iRule using https://devcentral.f5.com/codeshare?sid=573, but the issue persists.

 

What else could be missing?

 

-Jimmy

 

=-=-=

 

1 Reply

  • Hello,

     

    The code retrieved from devcentral should fail as it rewrite to

     

    But not

     

    You should replace the line that set the host by this one :

     

     Replace host header value with everything before the colon  
         HTTP::header replace Host "[getfield [HTTP::host] : 1]"  

    Then, this irule require that you set a stream profile on your VS.

     

    If the issue still exists, it can be that there is some javascript content somewhere that build the faulty request. You can still use a stream profile to rewrite the javascript part that build the url