Embed Vaadin UIs and enable HTTP access control (CORS) in your Vaadin applications
With this add-on you can embed Vaadin UIs into any Vaadin layout.
Suppose you have a Vaadin application running at
http://test.com. With this add-on you can add this Vaadin application into another one:
VaadinUIComponent externalUI = new VaadinUIComponent("http://test.com"); someLayout.addComponent(externalUI);
If your Vaadin apps are hosted in different servers. You have to activate HTTP access control (CORS). In your host Vaadin application you can add the provided
CorsSessionListener or manually add a
CorsBootstrapListener (also provided). In the hosted or embedded applications, you can use any available CORS filter. Spring also supports CORS.
If your Vaadin applications are hosted on the same server (machine), you have to configure different session cookie names for each server.
Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.
- Apache License 2.0
- Vaadin 7.5+
- Vaadin 8.0+