How to prevent Vaadin application from iframe?

How to prevent vaadin application from embedding in 3rd party websites? Enabling iframe can be a security issue.

I don’t think there is functionality built into Vaadin to do this but you can of course just use Javascript (maybe it works using JavaScript.execute() or JavaScript.addFunction(). If not you might need a Javascript component but they aren’t that difficult to make and implement in Vaaadin)

Have a look at: