Embed an external website inside the page

I would like to download something from website B to a page on website A and contain the functionality of website B in a container on website A.

I tried to do this using the div method and jQuery load() , but I ran into cross-site scripting problems (I think it works with the local file, but not with the remote URL).

I also tried using an iframe, but strange things happen (for example, when a link is clicked on the β€œcontaining” website B, it reloads the entire browser, losing the contents of website A).

I read about some ways to handle this server (and this can only happen in this one), but ideally I want something to be completely client-side, JavaScript and HTML.

Any ideas?

+4
source share
2 answers

Do you have any contacts or privileges for website B content? I do not think this is legal.

Contacting the authors of Site B is not an option to come up with any agreement?

Additional copyright information on the site

+1
source

What you explain ......... it looks like the site has XSS checks for attacks ....... I'm not sure if you know the seriousness of this iframe trick, but it is one way run phishing .

So, be careful and careful with what you do.

0
source

Source: https://habr.com/ru/post/1307029/


All Articles