osuresearch / annotator

React components for annotating forms and documents
MIT License
2 stars 2 forks source link

`ExternalDocument` crash on anchors without `target="_blank"` #8

Open McManning opened 1 year ago

McManning commented 1 year ago

Documents that have anchors going to external websites (or linking to documents) without opening in a new tab will cause the iframe to attempt to load cross-domain content, which of course crashes the whole thing.

Either the links need to be sanitized or disabled to ensure they can't open in the same frame when parsing a source document.