on 01-31-2017 11:56 AM
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.
Hi,
I am also facing same issue. Could you please let us know how to solved it ?
REgards,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry to post in an old question but .... Have you manage to make something that works?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.