Forum Discussion
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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