cancel
Showing results for 
Search instead for 
Did you mean: 

URL / Script mashup content cannot be displayed in a frame

JOSC_ITLAB
Participant
0 Kudos

Hello Experts,

i have trouble with implementing a frame which should link to another website.

The problem seems to be in newer frameworks or properties since simple websites as for example wikipedia are working and newer sites are not able to be displayed (like google).

For the binding I just used the one which was chosen by default. In the webUI wikipedia is displayed and google is not.

Please refer to my screenshots.

html-url-wiki.png

html-url-google.png

html-script-google.png

html-script-wiki.png

webui.png

webui-google.png

Are there any properties i can configure to enable the content in the frame?

Kind Regards,

Johannes

Accepted Solutions (1)

Accepted Solutions (1)

uskalviskis
Participant
0 Kudos

Hi Johannes,

if you check iframe via development tools (inspect element), in console you will notice that google is preventing emebeding their content if request is not coming from their domain

Cheers,

Uldis

JOSC_ITLAB
Participant
0 Kudos

Hi Uldis,

i already did my research on this but didnt update the question.

If you want to embed google live search you have to create a custom search and there you are able to get the code to embed the live search.

Still thanks for sharing this information so we have it here.

Kind Regards,

Johannes

Answers (1)

Answers (1)

former_member183363
Active Contributor
0 Kudos

Hi Johannes,

Is the issue browser-specific, i.e. have you tried it on other browsers? It might be to do with browser-specific settings.

Lewis

JOSC_ITLAB
Participant
0 Kudos

Hello Lewis,

I have tried it in the Internet Explorer, Mozilla and Chrome so far.

The Internet Explorer shows the result as you can see it in the Screenshots.

Mozilla and Chrome are just showing a blank site when directed to a site which can not be displayed.

Kind Regards,

Johannes

former_member183363
Active Contributor
0 Kudos

Johannes,

I'd suggest raising it as an incident with SAP; they may well be able to answer the question. I'm afraid I don't know myself.

Lewis

JOSC_ITLAB
Participant

Hello Lewis,

i came to the solution that this issue is not sap specific.

For example if you want to embed a google live search you need to create a custom google search and they will provide you the necessary url or code to embed the corresponding custom search.

The following code is an example for my custom search which just searches google as usually.

<html>
<body>
<script>
  (function() {
    var cx = '003527669824775148735:kkcbe7as6xw';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
</body>
</html>

All of the code besides the html and body tags are from google. In the html it looks like this

*Edit: Many websites use X-Frame-Options:SAMEASORIGIN or DENY to disable the usage in iFrames so clickjacking is not abused. Therefore for example google offer embedding services

Kind Regards,

Johannes