How to display content of one site on another?

Hello!

My task is to bring some content from another website on your.
I tried to do this via <iframe></code> and using the function <code class="javascript">load</code><br> Everywhere encountered the cross-domain restriction.<br><br> Is there some other way to defeat this?</iframe>
June 5th 19 at 22:03
3 answers
June 5th 19 at 22:05
Solution
Write a simple parser to take content from your site. But first, you need the owner of another site to ask permission!
+1
Moreover, when such permission the owner of the third party site can resolve that domain in their headers to obtain the content, say through ajax. - rhianna_Fee commented on June 5th 19 at 22:08
Yes , the owner does not mind to give permission. Tell me how to formulate his request that he and how to do I get access? - Laurel.Lang commented on June 5th 19 at 22:11
sorry, the Internet was not me.
The owner should server to give the title
Access-Control-Allow-Origin: <a href="http://you.site</code><br/><br/>">http://you.site</a>

And learn krestomania asynchronous requests. - rhianna_Fee commented on June 5th 19 at 22:14
thank you! - Laurel.Lang commented on June 5th 19 at 22:17
health.
If helped mark the answer so others know the question is closed. - rhianna_Fee commented on June 5th 19 at 22:20
June 5th 19 at 22:07
And the author of another site gave their consent?
Michael, Yes, the owner does not mind to give permission. Tell me how to formulate his request that he and how to do I get access? - rhianna_Fee commented on June 5th 19 at 22:10
June 5th 19 at 22:09
To make a request from your site to parse and display at home. Even caching can be ...

Find more questions by tags iframeJavaScript