How can I set up an iframe?How can I set up an iframe?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1204517452024-03-29T10:26:53Z2024-03-29T10:26:53ZRE: RE: How can I set up an iframe?Alberto Gutierrezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204521552020-11-16T12:59:46Z2020-11-16T12:59:46Z<p>My website and the url which i am specifying in the frame aren´t in
the same domain, so I´ve thought to add "allow-all" in the
X-Frame-Options but I read that it doesn´t work on modern browsers.</p>
<p> </p>
<p>How can I add a specif url permision in the X-Frame-Options??</p>
<p> </p>Alberto Gutierrez2020-11-16T12:59:46ZRE: How can I set up an iframe?Mohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204520442020-11-16T11:24:24Z2020-11-16T11:22:54Z<p>As per the Header value "SAMEORIGIN" is your website and
the url which u are specifiying in iframe are same domain name ? If
its same then the setting is correct. If domain name is changed then
you may need to change setting as per that.</p>Mohammed Yasin2020-11-16T11:22:54ZRE: RE: How can I set up an iframe?Alberto Gutierrezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204519872020-11-16T10:46:00Z2020-11-16T10:46:00Z<html><head></head><body><p>Hi,</p>
<p> </p>
<p>thanks for you reply by im adding this :</p>
<pre><code>Header always set X-Frame-Options "SAMEORIGIN"</code></pre>
<p>in the main Apache HTTP server configuration file by I dont apreciate
any change(after a server restart). </p>
<p>
<img src="/documents/14/0/serverconf.png/ae3b3a78-4578-debd-2f59-02149972cdc4?t=1605523467047&imagePreview=1"></p>
<p>Am I setting up correctly? </p></body></html>Alberto Gutierrez2020-11-16T10:46:00ZRE: How can I set up an iframe?Mohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204517972020-11-16T08:34:46Z2020-11-16T08:34:46Z<p>Hi ,</p>
<p>Looks like the external url which ur using in iframe needs to allow
ur website url for using it in iframe,by setting header <strong>x-frame-options.</strong></p>
<p>
<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options ">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options </a></p>Mohammed Yasin2020-11-16T08:34:46ZHow can I set up an iframe?Alberto Gutierrezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204517442020-11-16T08:09:10Z2020-11-16T08:09:10Z<p>Hi everyone. </p>
<p> </p>
<p>Rigth now, I have an iframe working perfeclty in my website. I need
to updtate it, cause I need to show other page in it. So, I change the
origin url and this message appears:</p>