I have now moved to Vaadin 16 and Wildfly 19.1.
I never used the Vaadin 14.1.x embedded component because it messed up the web pages CSS, I just used an iframe. There was supposed to be a fix for this in 14.2 - I have not checked yet, I’m just assuming it is there.
Now when trying this embedded component again I have run into the folowing problems:
- The Origin allowed header was not being triggered for the web-component and the browser was complaining and not loading the file. I had to add the following code to needsCorsHeaders()
} else if (path != null && path.startsWith("/vaadin/web-component/")) {
return true;
}
Now the webcomponent file is being loaded by the browser however I get an error that the .js file has the wrong mime type. When checking the js file contents, I see that it is in fact an html file containing a full vaadin app (PWA inlcuded!)
@Artur: have you tried a embedded component with Vaadin 16 yet?