-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
External content is inaccessible in the viewer iframe #943
Comments
Thanks for opening this issue. The (untested in Kiwix Serve) code I suggested is here: kiwix/kiwix-tools#604 (comment) (obviously will need to be adapted to the Kiwix Serve environment). |
An easy fix might be adding |
Does that ask the user? I haven't seen that directive in action. If it works, it would be better than adding event listeners. So long as the user is protected out of the box (from the browser destroying the iframe, whcih was the very reason we introduced the sandbox in the first place). |
Kind of acceptable for me, if nobody as a better alternative. |
Any fix for this issue should also take into account kiwix/kiwix-tools#591. The solution would be broadly the same (if using a click event listener, as opposed to relaxing the sandbox). |
It seems that a workaround was found. |
Sandboxing of the content in the viewer iframe (introduced by #906 and then reimplemented through #924 & #930) has resulted in links to external resources becoming inoperable in the viewer (no matter if
kiwix-serve
is started with the--blockexternal
option or not).This issue was noticed earlier and since it persisted after #906 was overridden by #924/#930 it definitely needs a dedicated ticket.
@Jaifroid's has proposed to fix the issue via making external links to be opened in a new tab/window. At this point I don't see any other solution.
The text was updated successfully, but these errors were encountered: