HTMLIFrameElement:csp 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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

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

一个内容安全策略。

规范

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

浏览器兼容性