Dashboard iFrame content block unable to get to external page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2021 07:28 AM
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
- Labels:
-
Content Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2021 07:59 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2021 08:14 AM
Russell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2021 08:26 AM
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.