4
我嵌入我的网页的iFrame,这样的事情:内容安全政策指令:“帧祖先‘自我’
var iframeProps = {
'data-type': self.props.type,
allowTransparency: self.props.allowTransparency,
className: self.props.className,
frameBorder: self.props.frameBorder,
height: self.props.height,
key: url,
onLoad: self.props.onLoad.bind(self),
scrolling: self.props.scrolling,
src: self.state.isActive ? url : '',
style: self.props.styles,
width: self.props.width
};
<iframe {...iframeProps} />
这是在控制台中抛出一个错误
拒绝显示“https://twitter.com/ ....在一个框架,因为祖先违反了以下内容安全政策指令:‘帧的祖先。自我'’
可以在任何请告诉我如何做这项工作?