Skip to Content

How to display an external website in SAPUI5 application?

I am trying to display an external website in my SAPUI5 application using the element sap.ui.core.HTML.

The website I am trying to display has its X-Frame Options set to deny. So I am unable to display it inside iframe like HTML tags. Is there a workaround for this? Or is there any other alternative to using sap.ui.core.HTML? I tried the following solutions which have not worked for me as of now:

I tried loading the website using AJAX method. But the website loads without style or script. I applied "dataType: jsonp" to this but this does not work in my case.

Also I tried to create a local html page for the website but it break out of the iframe to open in a new window.

Anchor tag (HTML) on my page always tries to open the website in a new window regardless of the target value. Same is the case with sap.m.Link

I tried accessing using anyorigin.com/whateverorigin.org but this way it throws a "Uncaught SyntaxError: Unexpected token <" error.

Please help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 01 at 10:55 AM

    Sorry to post in an old question but .... Have you manage to make something that works?

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 15 at 08:22 PM

    Hi,

    I am also facing same issue. Could you please let us know how to solved it ?

    REgards,

    Abhishek

    Add comment
    10|10000 characters needed characters exceeded