What's the problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's the problem?

I have code with a code base from mine and I have test it out and then. 3 websites functions but the 4th doesn't. <!DOCTYPE html> <iframe id="gameFrame" src="https://www.toggo.de/droplets/spiel/wasserschlacht/" width="100%" height="100%" frameborder="0" marginwidth="0" align="center" marginheight="0" allowfullscreen></iframe> <a href ="https://www.toggo.de/droplets/spiel/wasserschlacht">Browser <br />Browser</a>

27th Nov 2022, 7:23 PM
MikroMick
MikroMick - avatar
4 Answers
0
It would help if u share the link of the code made in codeplayground 👍
27th Nov 2022, 7:38 PM
Arturop
Arturop - avatar
27th Nov 2022, 7:47 PM
MikroMick
MikroMick - avatar
0
It does work in mozilla firefox if u make an individual index.html file. In sololearn inside mozilla firefox, it does not work. In chrome: Individual index.html file fails when third party cookies is set to block. So you have to allow all cookies. Probably it is set to allow all in firefox by default. Again inside sololearn it fails even with the cookies allowed. U should check some articles about "is iframing good practice". Btw some pages are also set to deny iframing during http requests. But in this case i believe its just a cookies problem that breaks the js code and prevents the page from loading in the iframe.
27th Nov 2022, 9:56 PM
Arturop
Arturop - avatar
0
Arturop ok but my problem is not fully solved
27th Nov 2022, 11:07 PM
MikroMick
MikroMick - avatar