Using Iframe in Service portal

salomesimpsone
Giga Contributor

Hi all,

I am learning about service portal

what I am trying is to display an external page(e.g google,...)using iFrame in service portal.

So, I created a widget and included the iframe as below

<iframe src="http://www.w3schools.com" height="500px" width="500px"></iframe>

but expected page is not getting displayed and the iframe is blank

How to use iframe in service portal??

Thanks in advance

1 ACCEPTED SOLUTION

Hi Salome,



That error would occur in service portal as well as CMS as the error is telling you that the content provider of the content displaying in the iframe has block access to it within an iframe. Service Portal was actually written so we wouldn't have to use frames anymore. For your case, I would just link out to that external content rather than trying to display it in an iframe.


View solution in original post

20 REPLIES 20

ark6
Mega Guru

Hi Salome,



You are not able to see the iframe contents due to the below exception



find_real_file.png


The exception comes because of using mixed content(HTTP and HTTPS) blocking in the browser.



Please refer to the below KB article from HI



ServiceNow KB: External website URL in iFrame results in a blank CMS page (KB0551989)


Hi arka,



Thanks for your reply...



But actually I am trying the iframe in "Service Portal- Widget"



So...how to add iframe in Widget of Service portal??



help me know, please...


Hi Salome,



That error would occur in service portal as well as CMS as the error is telling you that the content provider of the content displaying in the iframe has block access to it within an iframe. Service Portal was actually written so we wouldn't have to use frames anymore. For your case, I would just link out to that external content rather than trying to display it in an iframe.


Hi Brad,



Thanks...



Displaying the external content in iframe of Service portal widget is not possible at all??