mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 16:36:58 +00:00
Add a sandbox property to the renderer iframe to prevent any script execution
But still allow for print (via allow-modals), same-origin downloads, and top navigation (so that links work).
This commit is contained in:
1 parent
2eb246ab0d
commit
5fa7b95e19
1 file changed
+1
@@ -352,6 +352,7 @@ const BrewRenderer = (props)=>{
|
||||
style={{ width: '100%', height: '100%', visibility: state.visibility }}
|
||||
contentDidMount={frameDidMount}
|
||||
onClick={()=>{emitClick();}}
|
||||
sandbox="allow-same-origin allow-modals allow-top-navigation"
|
||||
>
|
||||
<div className='brewRenderer'
|
||||
onKeyDown={handleControlKeys}
|
||||
|
||||
Reference in new issue
Block a user