[SOLVED] Using iframe issue

Hi! as i have read in this post: Html and button in iframe if I dnt need special interaction between my game and an external web them I can use an iframe for that purpose but… it doesnt work :frowning:
I have made a simple example building to show it: https://playcanvas.com/project/518396/overview/iframe

anyone knows where is the point?

Thanks for reading :slight_smile:

Check the console for errors:

Refused to display 'https://forum.playcanvas.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

A lot of sites won’t allow developers to iframe their content on another site to protect their content.

humm… i used forum.playcanvas.com on example but and i have try with a lot of domains like google.com and nothing. In my real proyect im trying to do it with a site that im the owner and i dnt have nothing like that to protect content.

A lot of domains will have the same content protection. Again, check the browser console logs to see the errors.

Also note that you cannot serve none https content on a https host.

For example, if you use https://example.com, that works fine as it has no protection.

However, if you use http://example.com, that will fail to load as the PlayCanvas app is using https.

Achso, alles klar! Now I understand perfectly, the SSL certificate is preventing me. I do not know why I have not noticed it before, maybe too many hours on the desktop. Thanks so much for the help. It has been very clarifying :smiley: