Skip to content

Commit 39dacf3

Browse files
harunurhangithub-actions[bot]bsmth
authored
Clarify frame-ancestors behavior in nested frames (mdn#40886)
* Clarify frame-ancestors behavior in nested frames Added clarification on the behavior of the frame-ancestors directive in nested frames. * Update files/en-us/web/http/reference/headers/content-security-policy/frame-ancestors/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/http/reference/headers/content-security-policy/frame-ancestors/index.md Co-authored-by: Brian Smith <brian@smith.berlin> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Brian Smith <brian@smith.berlin>
1 parent 7f8ef95 commit 39dacf3

File tree

1 file changed

+3
-0
lines changed
  • files/en-us/web/http/reference/headers/content-security-policy/frame-ancestors

1 file changed

+3
-0
lines changed

files/en-us/web/http/reference/headers/content-security-policy/frame-ancestors/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Setting this directive to `'none'` is similar to {{HTTPHeader("X-Frame-Options",
1515
> **`frame-ancestors`** allows you to specify what parent source may embed a page.
1616
> This differs from **`frame-src`**, which allows you to specify where iframes in a page may be loaded from.
1717
18+
> [!NOTE]
19+
> The **`frame-ancestors`** directive [checks each ancestor](https://www.w3.org/TR/CSP2/#frame-ancestors-and-frame-options). If any ancestor doesn't match, the load is cancelled. Therefore all ancestors should be allowed by the **`frame-ancestors`** directive of leaf frames when using nested frames.
20+
1821
<table class="properties">
1922
<tbody>
2023
<tr>

0 commit comments

Comments
 (0)