Approach to Load external web site in our website is not working

Hi,

we need to Load external web site and show it as a live website tile in our application where x-frame-options set to same origin for the external website.

We followed below approaches but nothing is working.

Please help us to know any framework/approach to achieve this.

Iframe : < iFrame src="www.xyz.com">

Ajax Approach : Ajax HttpGet Call to the external web siteand get the html and render on our website.But replacing the image, css and html links from html is not working properly.


Web Request Approach : Server side HttpGet Call to the external web siteand get the html and render on our website.But replacing the image, css and html links from html is not working properly.
svkrishnagavvaAsked:
Who is Participating?
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
This means you are not authorized to do what you want and so the answer is you can't do it.

If I have this wrong, can you let me know which site you are trying to load in your own site?
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Some sites will have features built in to prevent what you are doing.  The first thing I would try is to create a example site that you control on another domain and use your iframe code on that site. If it works but the other site does not, that could be your answer.

The base code should include the full url like below.  Your example does not do that.
<iframe src="http://www.xyz.com"></iframe>

Open in new window

<iframe src="https://www.xyz.com"></iframe>

Open in new window


Can you post a link to your site for us to view?
0
 
svkrishnagavvaAuthor Commented:
Its an Inetrnal Web appllication of our comapany.

so that i cannot share the link.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
You can test on your own as I suggested and you can provide sample html where you replace the linked site to something else.
0
 
svkrishnagavvaAuthor Commented:
Yes.

we did it.

The response is X-Frame options set to same origin and unable to display the website.

We dont have any control on the other application to same their x-frame-options.
1
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
So you figured it out!  Awesome!
0
 
svkrishnagavvaAuthor Commented:
No.

We are waiting for other approach to display the website.

X-Frame options set to same origin means its not working.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.