HTMLIFrameElement:csp 属性

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

HTMLIFrameElement 接口的 csp 属性指定了嵌入文档必须同意对自己执行的内容安全策略

一个内容安全策略。

规范

Specification
Content Security Policy: Embedded Enforcement
# ref-for-dom-htmliframeelement-csp

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
csp
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.