Dashboard iFrame content block unable to get to external page

Community Alums
Not applicable

I am trying to add an iFrame content block to a dashboard and having issues.  I have tried https://www.google.com as well as an internal SharePoint site.  Neither are working and show the page refused connection error.  I tried to disable the system property (glide.set_x_frame_options) that several reference in other article without success.  Is there a limitation of this to only pages within the instance?  Thanks for the help.

Russell

3 REPLIES 3

Justin77
Mega Guru

https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/content-management/...

See note at bottom of that page: "Note: Some browsers suppress iFrames because they use an X-Frame-Options header value of SAMEORIGIN. The X–Frame-Options header was introduced in Internet Explorer 8 RC1, to help detect and prevent frame-based redressing. The SAMEORIGIN value causes the browser to render a blank page instead of the target page of the <frame> or <iframe> when the frame target is not on the same origin as the page itself. Support for this header has been implemented in Safari 4.0, Chrome 4.1.249.1042, and Firefox 3.6.9 and above."

 

Basically it is browser-dependent, and widely against best practice to iframe external sites.  What are you trying to accomplish with this iframe?  There might be a better and more global solution.

Community Alums
Not applicable

@Justin  The business would like to see a SharePoint dashboard page on a Dashboard tab.  Is there a better way to do this?

Russell

A couple options: The easy solution is to just provide a hyperlink to the external site.  The RIGHT and "ServiceNow way" would be to have that data stored in the platform and re-create that dashboard page as a report or UI page within ServiceNow.