S
S
Sergey Suntsev2019-12-26 18:47:27
JavaScript
Sergey Suntsev, 2019-12-26 18:47:27

How to bypass Same-origin_policy in vk using puppeteer?

I write tests on puppeteer, for the service. The service is not mine, but our company uses it, this is an application form that opens through vk and sends applications to AMO.

When accessing a document inside an iframe, I get an error that it is not safe to go into a child window with your code.

Uncaught DOMException: Blocked a frame with origin "https://vk.com" from accessing a cross-origin frame.
    at <anonymous>:1:22

But what confuses me is that with handles I can easily click on the form inside the iframe and insert text there.
Is there any way to send a code through vk that would automatically fill in the fields in the form through an iframe?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question