robbestad / react-iframe

Simple solution for using iframes in React
ISC License
436 stars 79 forks source link

Need to be able to set `sandbox` property to empty string #35

Closed gtwilliams03 closed 6 years ago

gtwilliams03 commented 6 years ago

I have an application using this component which renders a PDF inside an IFRAME. This component seems to set the sandbox property (at least in Chrome) to be wide open:

sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-top-navigation"

I had to remove this component and replace it with a basic HTML