How to second website page into my first website?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SagarJaybhay
    New Member
    • Feb 2019
    • 17

    How to second website page into my first website?

    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?
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    You can use an object, but that is basically a replacement of an iframe ...

    Comment

    • SagarJaybhay
      New Member
      • Feb 2019
      • 17

      #3
      Trying below but not successful

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        the problem is the type in that case (has to be a valid MIME-Type) - it should be:

        Code:
        application/xhtml+xml
        or:
        Code:
        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.

        Comment

        • SagarJaybhay
          New Member
          • Feb 2019
          • 17

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

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5390

            #6
            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.

            Comment

            • Luuk
              Recognized Expert Top Contributor
              • Mar 2012
              • 1043

              #7
              You could also use this page:

              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.

              Comment

              Working...