There is a certain page that is available only to account holders. And for each user the content on this page is unique. The main problem is that you need to pull out this content without additional authorizations. Without thinking twice, I shoved this page into the iframe and brought it to myself. A page with unique content is shown if the user is authorized on the site where this content is located. But the main problem is that if we parse this page without cookies of these users, then, accordingly, we will not receive any content, and if we do it through an iframe, as I did, then the source code of the page must either be manually pulled by users and inserted into the field which I will take for this purpose, or by means of JS to pull out.

And I screwed up on the fact that I can not get the source. How can I get around this limitation? Is there any similar way to do this?

  • four
    Fortunately, this is impossible. - Alexey Ten

1 answer 1

What you want to do is contrary to browser security policy: Domain Restriction Rule .

To circumvent this limitation, there are options, but they all assume either your possession of both sites, or add-ons over the browser: browser extensions, or Electron-type wrappers, where your code completely controls the browser component. All this will require the user to install something incomprehensible from you on his computer. Few who will go for it.