<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mixed content warning while embedding]]></title><description><![CDATA[<p dir="auto">I embedded Kimai into Nextcloud (<code>https://foo.bar</code>) using the external sites addon. My embedded link looks like: <code>https://time.foo.bar/</code> <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> I also added CSP headers for Kimai to Kimai's security tab within Cloudron: <code>frame-ancestors foo.bar;</code></p>
<p dir="auto">If I open the site through Nextcloud, I get a mixed content warning and no content at all.</p>
<pre><code>Mixed Content: The page at 'https://foo.bar/apps/external/8' was loaded over HTTPS, but requested an insecure frame 'http://time.foo.bar/de/login'. This request has been blocked; the content must be served over HTTPS.
</code></pre>
<p dir="auto">The reason of this is because the client is redirected to the login form without https and therefore blocked because of mixed content. It is well documented at the <a href="https://www.kimai.org/documentation/webserver-configuration.html#reverse-proxy" target="_blank" rel="noopener noreferrer nofollow ugc">Kimai documentation</a> why this happens and what to do.</p>
<p dir="auto">In our case we can add our (Cloudron) docker proxy as trused proxy: <code>TRUSTED_PROXIES=172.18.0.1</code> to Kimai's .env file. I can edit the .env file during runtime but I can't edit the env.template so my changes do not persist app restarts or updates.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> / <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> can you please add the Cloudron proxy IP to <a href="https://git.cloudron.io/cloudron/kimai-app/-/blob/master/env.template" target="_blank" rel="noopener noreferrer nofollow ugc">Kimai's env.template</a>? We have done something similar for Jirafeau, see <a href="https://git.cloudron.io/cloudron/jirafeau-app/-/commit/0f5966a78a11472073036a8a0c29f2b324cfc632" target="_blank" rel="noopener noreferrer nofollow ugc">Commit 0f5966a7</a> <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/topic/4848/mixed-content-warning-while-embedding</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 19:34:32 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/4848.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Apr 2021 14:59:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mixed content warning while embedding on Fri, 09 Apr 2021 06:08:56 GMT]]></title><description><![CDATA[<p dir="auto">Works <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Many thanks!</p>
]]></description><link>https://forum.cloudron.io/post/29440</link><guid isPermaLink="true">https://forum.cloudron.io/post/29440</guid><dc:creator><![CDATA[subven]]></dc:creator><pubDate>Fri, 09 Apr 2021 06:08:56 GMT</pubDate></item><item><title><![CDATA[Reply to Mixed content warning while embedding on Thu, 08 Apr 2021 20:39:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/subven" aria-label="Profile: subven">@<bdi>subven</bdi></a> I have pushed a fix for this.</p>
]]></description><link>https://forum.cloudron.io/post/29432</link><guid isPermaLink="true">https://forum.cloudron.io/post/29432</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 08 Apr 2021 20:39:37 GMT</pubDate></item><item><title><![CDATA[Reply to Mixed content warning while embedding on Thu, 08 Apr 2021 05:36:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/subven" aria-label="Profile: subven">@<bdi>subven</bdi></a> Ah, thanks! I will fix the package.</p>
]]></description><link>https://forum.cloudron.io/post/29383</link><guid isPermaLink="true">https://forum.cloudron.io/post/29383</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 08 Apr 2021 05:36:21 GMT</pubDate></item></channel></rss>