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

How to second website page into my first website?

P: 9
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?
Feb 19 '19 #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: 1,035
You can use an object, but that is basically a replacement of an iframe ...
Feb 19 '19 #2

P: 9
Trying below but not successful

Feb 20 '19 #3

gits
Expert Mod 5K+
P: 5,333
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.
Feb 20 '19 #4

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

gits
Expert Mod 5K+
P: 5,333
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.
Feb 20 '19 #6

Expert 100+
P: 1,035
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.
Feb 21 '19 #7

Post your reply

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