Skip to content

Commit a9ae63e

Browse files
committed
CSP: Add 'self' as a vaid 'frame-ancestors' value.
Closes #461
1 parent 025290d commit a9ae63e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

specs/CSP2/index.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ <h3 id="directive-frame-ancestors"><code>frame-ancestors</code></h3>
22982298
following ABNF grammar:
22992299

23002300
<pre>
2301-
<dfn>ancestor-source-list</dfn> = [ <a>ancestor-source</a> *( 1*WSP <a>ancestor-source</a> ) ] / "'none'"
2301+
<dfn>ancestor-source-list</dfn> = [ <a>ancestor-source</a> *( 1*WSP <a>ancestor-source</a> ) ] / "'none'" / "'self'"
23022302
<dfn>ancestor-source</dfn> = <a>scheme-source</a> / <a>host-source</a>
23032303

23042304
directive-name = "frame-ancestors"
@@ -2334,7 +2334,7 @@ <h3 id="directive-frame-ancestors"><code>frame-ancestors</code></h3>
23342334
<li>Abort loading the protected resource.</li>
23352335

23362336
<li>Take one of the following actions:
2337-
2337+
23382338
<ol>
23392339
<li>
23402340
Act as if it received an empty <a>HTTP 200 response</a>.

specs/content-security-policy/index.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ <h3 id="directive-frame-ancestors"><code>frame-ancestors</code></h3>
24042404
following ABNF grammar:
24052405

24062406
<pre>
2407-
<dfn>ancestor-source-list</dfn> = [ <a>ancestor-source</a> *( 1*<a>WSP</a> <a>ancestor-source</a> ) ] / "'none'"
2407+
<dfn>ancestor-source-list</dfn> = [ <a>ancestor-source</a> *( 1*<a>WSP</a> <a>ancestor-source</a> ) ] / "'none'" / "'self'"
24082408
<dfn>ancestor-source</dfn> = <a>scheme-source</a> / <a>host-source</a>
24092409

24102410
directive-name = "frame-ancestors"

0 commit comments

Comments
 (0)