PocoDoc: fix iframe sandboxing

This commit is contained in:
Günter Obiltschnig 2022-04-17 20:53:19 +02:00
parent 6da3186911
commit 96c0bf6d78
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ ${PocoDoc.customHeadHTML}
</div> </div>
<div class="body"> <div class="body">
<div id="navigation"> <div id="navigation">
<iframe sandbox src="navigation.html" onload="iFrameResize(this);" scrolling="no"></iframe> <iframe sandbox="allow-scripts allow-top-navigation-by-user-activation allow-same-origin" src="navigation.html" onload="iFrameResize(this);" scrolling="no"></iframe>
</div> </div>
<div id="content"> <div id="content">
<h2>User Guides And Tutorials</h2> <h2>User Guides And Tutorials</h2>

View File

@ -808,7 +808,7 @@ void DocWriter::writeNavigationFrame(std::ostream& ostr, const std::string& grou
query += item; query += item;
} }
ostr << "<div id=\"navigation\">\n"; ostr << "<div id=\"navigation\">\n";
ostr << "<iframe sandbox src=\"navigation.html" << query << "\" onload=\"iFrameResize(this);\" scrolling=\"no\"></iframe>\n"; ostr << "<iframe sandbox=\"allow-scripts allow-top-navigation-by-user-activation allow-same-origin\" src=\"navigation.html" << query << "\" onload=\"iFrameResize(this);\" scrolling=\"no\"></iframe>\n";
ostr << "</div>\n"; ostr << "</div>\n";
} }