cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0 HTML Viewer not getting displayed.

nmkarthikeya
Active Participant
0 Kudos

Hello All,

I am trying to display HTML viewer in Personas 3.0,  by adding HTML Viewer element and passing the url to it, but when I save and exit nothing is getting displayed(No errors while saving). I got below error in the browser's console.

Could you please check below and let me know how to solve this?

Error in browser:

URL in HTML Viewer:

Whitelist url: I tried with the actual https://www.google.co.in/ as well.

System Details:

EDIT1:

url Whitelist Check is giving error!

Regards,

Karthikeya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Your whitelist entry for "ALL" isn't quite right. Try this - (http|https):\/\/.*

And in the URL checker you put actual URLs, not another pattern.

Steve.

nmkarthikeya
Active Participant
0 Kudos

Hi Steve,

Thank you for pointing that out, I changed the Whitelist Entry to (http|https):\/\/.* but still nothing is getting displayed, below is the console entry from Chrome.


Just to check if my Whitelist is correct I created Website Button and its working fine!! no clue as to what is wrong with HTML Viewer.

Thanks,

Karthikeya

Former Member
0 Kudos

What are you trying to display in the HTMLViewer component? Can you display something simple like google dot com?

Could this be related to the X-Frame-Origin messages? Does the page you are trying to embed contain JavaScript that tries to access the browser environment (e.g. the Window object, or other global objects)?

I see a TypeError message related to a call of getProperty on a null object. Is that in your script, or is it something unexpected you have passed to a standard Personas method?

Try to cut this down to something very simple that works, and then build it up slowly. That will make it easier to spot the error.

Steve.

nmkarthikeya
Active Participant
0 Kudos

Hi Steve,

I am trying with the simple google.com itself.

I am passing the url: "https://www.google.com" to the HTML Viewer. This is how I am doing it.

Thanks,

Karthikeya

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Google doesn't like to be embedded in an iFrame. For this reason, www.google.com (and its localized variations) cannot be used as the HTML viewer URL. However, there is a way to get around this by using a custom search URL, such as http://www.google.com/custom?q=

Furthermore, if your Personas page is accessed using http and the URL you are embedding is with https then this won't work either. This is a browser restriction, not related to Personas.

Former Member
0 Kudos

I never knew that about Google. I guess it is google that is setting the X-Frame-Options, then? It makes sense now - google is not the simple thing I thought it was. Thanks for the custom search trick, Tamas

Steve.