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.

FileDownloader in Safari 9.0.2

Juan G. Hurtado
7 years ago Jan 04, 2016 1:36pm

Hello everyone!

I'm facing an issue while trying to add a download button on a view. It's just a simple Button extended using a FileDownloader.

In the Javascript console of Safari I see:

efused to display 'http://localhost:8080/app/vaadinServlet/APP/connector/0/87/dl/file.txt' in a frame because it set 'X-Frame-Options' to 'DENY

My code is something like this (simplified, of course):

StreamSource streamSource = new StreamSource() {
            public InputStream getStream() {
                byte bytes = Base64.decodeBase64("blablablabla");
                return new ByteArrayInputStream(bytes);

FileDownloader downloader = new FileDownloader(new StreamResource(streamSource, "file.txt"));
Button downloadButton = new Button("download");


Am I doing something wrong? In Firefox it works right.

I'm using Vaadin 7.5.5.