Skip to content

Commit

Permalink
fix(Iframes): allow camera for jumio, remove sandbox attr from iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jul 24, 2018
1 parent d7d468d commit 1fd8b13
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,7 @@ class ISignThisContainer extends Component {
</TimerContainer>
<ISXContainer>
<IframeWrapper>
<ISignThisIframe
src={srcUrl}
sandbox='allow-same-origin allow-scripts allow-forms'
scrolling='yes'
id='isx-iframe'
/>
<ISignThisIframe src={srcUrl} scrolling='yes' id='isx-iframe' />
</IframeWrapper>
<ButtonContainer>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const Container = styled.div`
align-items: center;
flex-direction: column;
`
const JumioFrame = styled.iframe`
const JumioFrame = styled.iframe.attrs({
allow: 'camera'
})`
width: 80%;
height: 450px;
border-width: 1px;
Expand All @@ -25,12 +27,7 @@ const Success = props => {

return (
<Container>
<JumioFrame
src={jumioUrl}
sandbox='allow-same-origin allow-scripts allow-forms allow-popups'
scrolling='yes'
id='jumio'
/>
<JumioFrame src={jumioUrl} scrolling='yes' id='jumio' />
</Container>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const iframe = props => (
: { border: 'none', width: '100%', height: '40px' }
}
src={props.plaidUrl}
sandbox='allow-same-origin allow-scripts allow-forms allow-popups'
scrolling='no'
id='plaid'
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ class SiftScience extends Component {

if (siftScienceEnabled) {
return (
<SiftScienceIframe
src={url}
sandbox='allow-same-origin allow-scripts'
scrolling='no'
id='sift-science-iframe'
/>
<SiftScienceIframe src={url} scrolling='no' id='sift-science-iframe' />
)
}
}
Expand Down

0 comments on commit 1fd8b13

Please sign in to comment.