搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

ajax iframe content not loaded

  • 7 回覆
  • 7 有這個問題
  • 1 次檢視
  • 最近回覆由 wadoo

more options

Loading an iframe result in a blank iframe which contains only html and body tags. There is no error in the console. There is no mixed content. There is no cross site request. All is in http and relative to the same domain. I don't know if it important but the website is not under apache but nginx. Tried on a fresh Firefox, tried on safe mode, tried also on my firefox android which has no add-on. Problem still exists. The iframe is displayed well on chrome browser. To reproduce: Go to: http://taekwondoluxembourg.com/index.php?option=com_phocagallery&view=category&id=34:passages&Itemid=154 Click any photo and see the blank iframe

Loading an iframe result in a blank iframe which contains only html and body tags. There is no error in the console. There is no mixed content. There is no cross site request. All is in http and relative to the same domain. I don't know if it important but the website is not under apache but nginx. Tried on a fresh Firefox, tried on safe mode, tried also on my firefox android which has no add-on. Problem still exists. The iframe is displayed well on chrome browser. To reproduce: Go to: http://taekwondoluxembourg.com/index.php?option=com_phocagallery&view=category&id=34:passages&Itemid=154 Click any photo and see the blank iframe

被選擇的解決方法

Does it has effect if you do not send the X-FRAME-OPTIONS header?

從原來的回覆中察看解決方案 👍 1

所有回覆 (7)

more options
more options

Hi, I didn't though about that. I was thinking that joomla generate clean and standard HTML. It's seems not. As it's generated and in production is hard right now to fix that errors, but i will make a test version and do the fix in the core of joomla to ensure if it's relied to this. As soon as i have fixed it and tested again, i will post here again. Thanks for pointing me that.

more options

選擇的解決方法

Does it has effect if you do not send the X-FRAME-OPTIONS header?

more options

cor-el a écrit

Does it has effect if you do not send the X-FRAME-OPTIONS header?

Your link is broken, it give me a 404. If i remember good, i already does this test but to be very sure. i'll do it today and get back to you.

more options

cor-el a écrit

Does it has effect if you do not send the X-FRAME-OPTIONS header?

Yes removing it fix the problem. I have added it for another site which needed last year. Actually i didn't checked but today the other site was also a blank page, removing the header make the other site came back (which is proxyed btw). This is strange, how this header can do that when the value choosen is SAMEORIGIN and all is in the same origin ? Also Thanks for the solution

more options

You're welcome.

Maybe you need to use the full URL instead of a relative link to make this work.

more options

cor-el said

You're welcome. Maybe you need to use the full URL instead of a relative link to make this work.

I tried full url in the first time. It was not working. But as it's a generated site (joomla), i changed the url in live with console. (I'm not a joomla expert so it was faster for me to do so) Maybe it has impact, i'm not sure