Answer the question
In order to leave comments, you need to log in
How to open a link from an iframe if the window is in a sandbox?
There is a parent document that contains an IFRAME with the sandbox="allow-scripts" sandbox. That is, only JS code is allowed.
There is a link in this IFRAME, but when clicked, the console returns: Unsafe JavaScript attempt to initiate navigation for frame with origin 'site.ru' from frame with URL 'site.com'. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.
What I have not tried ... Open through JS, various options for target. Protection from people like me?
Answer the question
In order to leave comments, you need to log in
I suppose on the site you want to display, you need to register X-Frame-Options ALLOW-FROM your_domain
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question