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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.