<?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[set 'X-Frame-Options' to 'sameorigin'.]]></title><description><![CDATA[<p dir="auto">how can i disable x-frame options on the MM. i Want to see the MM in a Iframe on iobroker<br />
thanks for help</p>
]]></description><link>https://forum.magicmirror.builders/topic/14434/set-x-frame-options-to-sameorigin</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 22:54:54 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14434.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Jan 2021 12:50:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to set 'X-Frame-Options' to 'sameorigin'. on Mon, 23 May 2022 18:47:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hedmondjohn" aria-label="Profile: hedmondjohn">@<bdi>hedmondjohn</bdi></a></p>
<p dir="auto">see <a href="https://github.com/MichMich/MagicMirror/pull/2850" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/pull/2850</a></p>
]]></description><link>https://forum.magicmirror.builders/post/102019</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102019</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Mon, 23 May 2022 18:47:08 GMT</pubDate></item><item><title><![CDATA[Reply to set 'X-Frame-Options' to 'sameorigin'. on Mon, 23 May 2022 06:34:54 GMT]]></title><description><![CDATA[<p dir="auto">X-Frame-Options is a header included in the response to the request to state if the domain requested will allow itself to be displayed within a frame. It has nothing to do with <a href="http://net-informations.com/js/iq/default.htm" target="_blank" rel="noopener noreferrer nofollow ugc">javascript</a> or HTML, and cannot be changed by the originator of the request. You can’t set X-Frame-Options on the iframe. That is a response header set by the domain from which you are requesting the resource . They have set the header to SAMEORIGIN in this case, which means that they have disallowed loading of the resource in an iframe outside of their domain. So you cannot embed their website into yours. Browsers when see that the response header contains X-Frame-Options: SAMEORIGIN, they check your domain and block the rendering of the <code>&lt;iframe&gt;</code>. It is a security measure to avoid clickjacking.</p>
]]></description><link>https://forum.magicmirror.builders/post/102006</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/102006</guid><dc:creator><![CDATA[hedmondjohn]]></dc:creator><pubDate>Mon, 23 May 2022 06:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to set 'X-Frame-Options' to 'sameorigin'. on Sat, 16 Jan 2021 21:10:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks</p>
<p dir="auto">after clearing cache in chrome it works</p>
]]></description><link>https://forum.magicmirror.builders/post/87289</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87289</guid><dc:creator><![CDATA[MichaelKrems]]></dc:creator><pubDate>Sat, 16 Jan 2021 21:10:24 GMT</pubDate></item><item><title><![CDATA[Reply to set 'X-Frame-Options' to 'sameorigin'. on Thu, 14 Jan 2021 18:31:38 GMT]]></title><description><![CDATA[<p dir="auto">No<br />
still same error<br />
“Refused to display ‘<a href="http://10.0.0.192:8080/" target="_blank" rel="noopener noreferrer nofollow ugc">http://10.0.0.192:8080/</a>’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.”</p>
<p dir="auto">MM and IoBroker not on the same Pi<br />
iobroker 10.0.0.x1<br />
MM          10.0.0.x2</p>
]]></description><link>https://forum.magicmirror.builders/post/87205</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87205</guid><dc:creator><![CDATA[MichaelKrems]]></dc:creator><pubDate>Thu, 14 Jan 2021 18:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to set 'X-Frame-Options' to 'sameorigin'. on Thu, 14 Jan 2021 16:11:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michaelkrems" aria-label="Profile: MichaelKrems">@<bdi>MichaelKrems</bdi></a> Considering you know what you are doing suggesting below.</p>
<p dir="auto">Change below line in server.js, let me know if that works.</p>
<pre><code>	app.use(helmet({ contentSecurityPolicy: false }));
</code></pre>
<p dir="auto">to</p>
<pre><code>	app.use(helmet({ contentSecurityPolicy: false, frameguard: false }));
</code></pre>
<p dir="auto">It should work as below</p>
<p dir="auto"><img src="/assets/uploads/files/1610640599603-c4d051a7-de1a-43a8-9fe3-42bddc80dc9b-image-resized.png" alt="c4d051a7-de1a-43a8-9fe3-42bddc80dc9b-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/87200</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/87200</guid><dc:creator><![CDATA[ashishtank]]></dc:creator><pubDate>Thu, 14 Jan 2021 16:11:32 GMT</pubDate></item></channel></rss>