display filebrowser in iframe

155 views
Skip to first unread message

Derek Toub

unread,
Jan 25, 2016, 2:15:50 PM1/25/16
to Hue-Users
I want to show two of the hue apps on one page using iframes (or any other recommended method).

I tried to display just the hdfs filebrowser in an iframe, but frame always attempts (and succeeds) at top-navigation and takes over/redirects the parent page, which is not desired. I can try to solve this by sandboxing the iframe, but then the iframe displays as empty. Any recommendations?

Enrico Berti

unread,
Jan 25, 2016, 2:22:46 PM1/25/16
to Derek Toub, Hue-Users
Hi Derek,
Hue cannot be embedded in an iframe for security reasons. 
If you want though, you can modify your Hue code here (https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/templates/common_header.mako#L215) to allow it :)

On Mon, Jan 25, 2016 at 8:15 PM, Derek Toub <dere...@gmail.com> wrote:
I want to show two of the hue apps on one page using iframes (or any other recommended method).

I tried to display just the hdfs filebrowser in an iframe, but frame always attempts (and succeeds) at top-navigation and takes over/redirects the parent page, which is not desired. I can try to solve this by sandboxing the iframe, but then the iframe displays as empty. Any recommendations?

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.

Derek Toub

unread,
Jan 25, 2016, 2:24:34 PM1/25/16
to Hue-Users, dere...@gmail.com
Awesome; thanks for the quick and specific reply!
Message has been deleted

Romain Rigaux

unread,
May 21, 2018, 8:52:36 PM5/21/18
to anurag...@gmail.com, Hue-Users, dere...@gmail.com

And by switching in the ini?

[desktop]
  # X-Frame-Options HTTP header value. Use 'DENY' to deny framing completely
  ## http_x_frame_options=SAMEORIGIN

On Mon, May 21, 2018 at 10:39 AM Anurag <anurag...@gmail.com> wrote:
Hi,

I am having exactly same issue when loading Hue in an iFrame. I am using Hue 4.1 but not sure what to modify in common_header.mako#L215. Perhaps the code got changed since the original post from 2016. I see there is frame busting code in common_header_m.mako and common_header_footer_components.mako. I tried commenting it but it doesn't work. Can anyone help with the correct place to make the code change.

Appreciate any help!

Thanks
Reply all
Reply to author
Forward
0 new messages