By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,495 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,495 IT Pros & Developers. It's quick & easy.

How to second website page into my first website?

P: 5
I m trying to display webpage into second website using iframe but i don't want to use iframe. Is their any way rather than iframe?
4 Weeks Ago #1

✓ answered by gits

of course - that is what i did mention above already and how it has to be since it is a security feature. there is no simple way to circumvent the same origin policy.

Share this Question
Share on Google+
6 Replies


Expert 100+
P: 998
You can use an object, but that is basically a replacement of an iframe ...
4 Weeks Ago #2

P: 5
Trying below but not successful

4 Weeks Ago #3

gits
Expert Mod 5K+
P: 5,210
the problem is the type in that case (has to be a valid MIME-Type) - it should be:

Expand|Select|Wrap|Line Numbers
  1. application/xhtml+xml
or:
Expand|Select|Wrap|Line Numbers
  1. text/html

but even then the question is why you dont want to use an iframe. the object element will respect the same origin policy as well, like an iframe does.
4 Weeks Ago #4

P: 5
same error i got like iframe.
Refused to display 'https://example.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
4 Weeks Ago #5

gits
Expert Mod 5K+
P: 5,210
of course - that is what i did mention above already and how it has to be since it is a security feature. there is no simple way to circumvent the same origin policy.
4 Weeks Ago #6

Expert 100+
P: 998
You could also use this page:
https://www.web2pdfconvert.com/to/jpg
to convert the website to an image,
and show this image.

But it's a bit unclear why you really want to show 'a website' witin another site.
4 Weeks Ago #7

Post your reply

Sign in to post your reply or Sign up for a free account.