-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not change page when embed into iframe with sandbox attribute #47
Comments
I can reproduce that issue as well. It looks like this commit attempted to solve the problem: However, it looks like there's a mistake here: h5p-interactive-book/src/scripts/app.js Lines 801 to 819 in 786c11c
It looks like it's assuming that The obvious fix would be to do whatever the Uh, is there an established reason why we want to modify |
In Drupal H5P embed in iframe for JS/CSS isolation from CMS site. |
Demo: https://demo.elibsystem.ru/node/38675/webfs/index.html
Application try change hash of location, that not allowed for iframe. Browser throws error and page not changing.
Reproduce:
Problem code example:
<iframe src="https://demo.elibsystem.ru/h5p/embed/38674" sandbox="allow-same-origin allow-scripts allow-popups allow-forms" allowfullscreen style="width: 100vw; height: 100vh; border: 0px;"></iframe>
Workaround: sandbox="allow-top-navigation"
The text was updated successfully, but these errors were encountered: