# Mixed Content issue

**URL:** <https://community.f5.com/t/mixed-content-issue/5270>\
**Category:** Technical Forums\
**Tags:** ltm, application-delivery\
**Created:** [May 15, 2016, 3:01pm UTC](https://community.f5.com/t/mixed-content-issue/5270 "2016-05-15T15:01:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimmyJose](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@JimmyJose](https://community.f5.com/u/JimmyJose)\
**Post date:** [May 15, 2016, 3:01pm UTC](https://community.f5.com/t/mixed-content-issue/5270/1 "2016-05-15T15:01:31Z")

</div>

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](https://site.com/abc.aspx)’ was loaded over HTTPS, but requested an insecure resource ‘[http://site.com:9999/ABC/abc.aspx](http://site.com:9999/ABC/abc.aspx)’. This request has been blocked; the content must be served over HTTPS.”

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

What else could be missing?

-Jimmy

=-=-=

---

<div class="post-metadata">

**Author:** ![Yann\_Desmarest\_1](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@Yann\_Desmarest\_1](https://community.f5.com/u/Yann_Desmarest_1)\
**Post date:** [May 15, 2016, 3:29pm UTC](https://community.f5.com/t/mixed-content-issue/5270/2 "2016-05-15T15:29:22Z")

</div>

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 :

```tcl
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
