phphtmliframeirckiwi-irc

iframe not working, on kiwiirc embed


I was writing a long .php website and thought about embedding kiwiirc. The issue is, I keep getting an empty frame. The problem is even worse when I figured out that iframe for kiwiirc.com itself works, but not for the full embed code (example for not working: https://kiwiirc.com/client/irc.kiwiirc.com/?&theme=basic#your_channel ). Other sites work as expected too, the only issue I appear to have with is their own embed links. If I open their link in a browser, it works. I'm trying to run it on localhost.

Example of code not working:

<!DOCTYPE html>
<html>
    <head>
        <title>TEST</title>
        <link rel="stylesheet" href="css/styles.css">
    </head>
    <body>
<iframe src="https://kiwiirc.com/client/irc.kiwiirc.com/?&theme=basic#your_channel" style="border:0; width:100%; height:450px;"></iframe>
    </body>
</html>

Kiwiirc's embed links: https://kiwiirc.com/embedding


Solution

  • If you run a Kiwi applet in a frame or iframe you have to enable third party cookies because the browser sees two different domains. Your domain and the domain where the cookies come from (your embedded applet)