• Off-topic
  • Problems embedding a iframe to fof/pages

Hello there, why are my iframes in fof pages not working respectively the discord iframe is working and this iframe

<!DOCTYPE html>
<html>
<head>
    <title>Meine Webseite mit iframe</title>
</head>
<body>
    <iframe src="http://lebenmc.de:8123/" width="100%" height="500px"></iframe>
</body>
</html>

is not working
but when i take the code into a plain html site then it works

    Jauni do you see a browser error where the iframe should be ? A probable cause is that the browser is refusing to load an iframe due to the forum and iframe origins not being compatible, or because some headers are returned by one site or another. If your forum is HTTPS and the iframe HTTP it's already a bad start, I doubt any browser will load that.

    If you don't see an error in the frame directly in the browser, there might still be an error visible in the console of the browser developer tools.

    If you have a public demo page where we get see the issue, please share the URL.

      Jauni it's like I suspected in my earlier message. Firefox logs the error Blocked loading mixed active content “http://lebenmc.de:8123/”. Chrome logs the error Mixed Content: The page at 'https://lebenmc.de/p/2-live-map' was loaded over HTTPS, but requested an insecure frame 'http://lebenmc.de:8123/'. This request has been blocked; the content must be served over HTTPS.

      I don't think you'll find any browser that accepts loading an HTTP iframe on an HTTPS page. You'll need to serve the iframe content over HTTPS as well.

      It's possible it worked in the past before browsers fully committed to blocking this insecure solution.