Skip to content

Commit 8c47156

Browse files
authored
Tone down X-Frame-Options warning (#37774)
1 parent 7eb271b commit 8c47156

File tree

1 file changed

+2
-6
lines changed
  • files/en-us/web/http/headers/x-frame-options

1 file changed

+2
-6
lines changed

files/en-us/web/http/headers/x-frame-options/index.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
title: X-Frame-Options
33
slug: Web/HTTP/Headers/X-Frame-Options
44
page-type: http-header
5-
status:
6-
- deprecated
75
browser-compat: http.headers.X-Frame-Options
86
---
97

10-
{{HTTPSidebar}}{{deprecated_header}}
11-
12-
> [!WARNING]
13-
> Instead of this header, use the {{HTTPHeader("Content-Security-Policy/frame-ancestors", "frame-ancestors")}} directive in a {{HTTPHeader("Content-Security-Policy")}} header.
8+
> [!NOTE]
9+
> For more comprehensive options than offered by this header, see the {{HTTPHeader("Content-Security-Policy/frame-ancestors", "frame-ancestors")}} directive in a {{HTTPHeader("Content-Security-Policy")}} header.
1410
1511
The HTTP **`X-Frame-Options`** {{Glossary("response header")}} can be used to indicate whether a browser should be allowed to render a page in a {{HTMLElement("frame")}}, {{HTMLElement("iframe")}}, {{HTMLElement("embed")}} or {{HTMLElement("object")}}. Sites can use this to avoid [clickjacking](/en-US/docs/Web/Security/Types_of_attacks#clickjacking) attacks, by ensuring that their content is not embedded into other sites.
1612

0 commit comments

Comments
 (0)