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.
Please let me know if anything is missing.
Thanks
Hello,
Any help would be appreciated.
Thanks
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?
Cheers,
Kees
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 <span class="token punctuation">{</span>
<span class="token builtin">if</span> <span class="token punctuation">{</span> <span class="token punctuation">[</span>HTTP::header exists Location<span class="token punctuation">]</span> <span class="token punctuation">}</span> <span class="token punctuation">{</span>
HTTP::header remove Server
HTTP::header replace Location <span class="token punctuation">[</span><span class="token keyword">string</span> map <span class="token punctuation">{</span><span class="token string">"http://"</span> <span class="token string">"https://"</span><span class="token punctuation">}</span> <span class="token punctuation">[</span><span class="token keyword">string</span> tolower <span class="token punctuation">[</span>HTTP::header Location<span class="token punctuation">]</span><span class="token punctuation">]</span><span class="token punctuation">]</span>
<span class="token punctuation">}</span>
<span class="token comment"># Check if response type is text</span>
<span class="token builtin">if</span> <span class="token punctuation">{</span><span class="token punctuation">[</span>HTTP::header value Content<span class="token operator">-</span>Type<span class="token punctuation">]</span> contains <span class="token string">"text"</span><span class="token punctuation">}</span><span class="token punctuation">{</span>
<span class="token comment"># Replace http:// with https://</span>
STREAM::expression <span class="token punctuation">{</span>@http:<span class="token operator">/</span><span class="token operator">/</span>@https:<span class="token operator">/</span><span class="token operator">/</span>@<span class="token punctuation">}</span>
<span class="token comment"># Enable the stream filter for this response only</span>
STREAM::enable
<span class="token punctuation">}</span>
<span class="token punctuation">}</span>