mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
PocoDoc: fix iframe sandboxing
This commit is contained in:
@@ -808,7 +808,7 @@ void DocWriter::writeNavigationFrame(std::ostream& ostr, const std::string& grou
|
||||
query += item;
|
||||
}
|
||||
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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user