Content-Security-Policy: fenced-frame-src 指令
HTTP Content-Security-Policy (CSP) fenced-frame-src 指令指定載入到 <fencedframe> 元素中的巢狀瀏覽上下文的有效來源。
語法
http
Content-Security-Policy: fenced-frame-src <source-expression-list>;
<source-expression-list>-
一個由源表示式值組成的空格分隔列表。如果資源型別與任何給定的源表示式匹配,則可以載入此類資源。對於此指令,以下源表示式值適用:
<host-source>值"https:"<scheme-source>值"https:"- 字串
"*"
示例
違規情況
給定此 CSP 頭
http
Content-Security-Policy: fenced-frame-src https://example.com/
以下來源將不會在圍欄框架中載入
https://not-example.com/(域名不匹配)https://example.org/(頂級域名不匹配)
規範
| 規範 |
|---|
| 圍欄框架 # new-csp-directive |
瀏覽器相容性
載入中…