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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
JFreeChartWrapper empty behind proxy
Hi together,
when loading a svg graph through a zuul proxy it is not displayed in the UI. You can see it in the image I attached. When calling the svg directly and also when open it behind the proxy within the UI it shows up.
Here is the code I use:
JFreeChart chart = createchart(dataset);
JFreeChartWrapper jFreeChartWrapper = new JFreeChartWrapper(chart) {
private static final long serialVersionUID = -7115428425068565513L;
@Override
public void attach() {
super.attach();
setResource("src", getSource());
}
};
Do you have any suggestions about where to look/debug and about what could be the reason?
Thanks in advance
Karsten
Spring Security sends a X-Frame-Option-Header (with DENY) which disallows it to view the chart within an IFrame. There for an embedded object is used to display the graph, but that doesn't work.
http.headers().frameOptions().disable();
on the zuul-proxy-service was the solution.