Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Embedded SVG not visible

Michael Fischer
7 years ago May 20, 2015 2:18pm
Emmanuelle Victoria
7 years ago May 20, 2015 2:45pm
Michael Fischer
7 years ago May 20, 2015 3:50pm
Michael Fischer
7 years ago May 21, 2015 11:30am

The problem was to be found somewhere else: Spring Security.

From the Spring Security documentation:
The X-Frame-Options response header instructs the browser to prevent any site with this header in the response from being rendered within a frame. By default, Spring Security disables rendering within an iframe.

I solved the issue by adding the following arguments to my SecurityConfiguration:

.and().headers().addHeaderWriter(new XFrameOptionsHeaderWriter(XFrameOptionsMode.SAMEORIGIN));


Karsten Ludwig Hauser
6 years ago Aug 10, 2016 4:24pm