L
L
leqalo2015-10-30 22:27:38
JavaScript
leqalo, 2015-10-30 22:27:38

How to catch parent window on https domain?

There was such a problem - I can’t catch the parent window after switching from an https domain to a page of another domain with the following script:

if(parent.window.opener) parent.window.opener.location.replace("ya.ru");



The script just doesn't work. Suggest a solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Kulyash, 2015-11-07
@rekzi

There is no solution, you should probably read about CORS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question