How to display external site as embedded frame on homepage?

toneyvecchio1
Tera Expert

I am attempting to display a small embedded site on a homepage as a quick dashboard. I have been unable to figure it out an am hoping someone on here might have experience.

I have tried following Adding Existing Gauges to a Homepage - ServiceNow Wiki

I created a UI Page (Tried with and without Jelly tags)

2016-02-03 11_04_54-ServiceNow.png

Created a Widget to post UI page to dashboard

2016-02-03 11_05_25-ServiceNow.png

Cannot get to work?

2016-02-03 11_04_04-ServiceNow.png

3 REPLIES 3

Manjul Katare
ServiceNow Employee
ServiceNow Employee

Hi Toney,



You may not be able to render any external site/webpages using iframe within servicenow portal. If you see your console you are probably getting a message as well like "Refused to display 'https://www.google.com/?sysparm_nameofstack=0fdc85e24f55120087cdf9718110c74e&sysparm_clear_stack=yes' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."



Note: Some browsers suppress iFrames because of 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.



Please refer: Using Content Blocks - ServiceNow Wiki



Hope this help!


-Manjul


mrjohn
Giga Contributor

Has anyone else got any experience of getting external websites to display through Service Portal widgets please?   Going round in circles here.


PH2
Kilo Contributor

Can't we still display external website using iframe in UI Macro??