You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manual/src/docs/asciidoc/_includes/servlet/appendix/namespace.adoc
-31
Original file line number
Diff line number
Diff line change
@@ -504,43 +504,12 @@ Default false.
504
504
** `DENY` The page cannot be displayed in a frame, regardless of the site attempting to do so.
505
505
This is the default when frame-options-policy is specified.
506
506
** `SAMEORIGIN` The page can only be displayed in a frame on the same origin as the page itself
507
-
** `ALLOW-FROM origin` The page can only be displayed in a frame on the specified origin.
508
507
509
508
+
510
509
511
510
In other words, if you specify DENY, not only will attempts to load the page in a frame fail when loaded from other sites, attempts to do so will fail when loaded from the same site.
512
511
On the other hand, if you specify SAMEORIGIN, you can still use the page in a frame as long as the site including it in a frame it is the same as the one serving the page.
513
512
514
-
[[nsa-frame-options-strategy]]
515
-
* **strategy**
516
-
Select the `AllowFromStrategy` to use when using the ALLOW-FROM policy.
517
-
518
-
** `static` Use a single static ALLOW-FROM value.
519
-
The value can be set through the <<nsa-frame-options-value,value>> attribute.
520
-
** `regexp` Use a regular expression to validate incoming requests and if they are allowed.
521
-
The regular expression can be set through the <<nsa-frame-options-value,value>> attribute.
522
-
The request parameter used to retrieve the value to validate can be specified using the <<nsa-frame-options-from-parameter,from-parameter>>.
523
-
** `whitelist` A comma-separated list containing the allowed domains.
524
-
The comma-separated list can be set through the <<nsa-frame-options-value,value>> attribute.
525
-
The request parameter used to retrieve the value to validate can be specified using the <<nsa-frame-options-from-parameter,from-parameter>>.
526
-
527
-
528
-
529
-
530
-
[[nsa-frame-options-ref]]
531
-
* **ref**
532
-
Instead of using one of the predefined strategies it is also possible to use a custom `AllowFromStrategy`.
533
-
The reference to this bean can be specified through this ref attribute.
534
-
535
-
536
-
[[nsa-frame-options-value]]
537
-
* **value**
538
-
The value to use when ALLOW-FROM is used a <<nsa-frame-options-strategy,strategy>>.
539
-
540
-
541
-
[[nsa-frame-options-from-parameter]]
542
-
* **from-parameter**
543
-
Specify the name of the request parameter to use when using regexp or whitelist for the ALLOW-FROM strategy.
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/header/writers/frameoptions/AbstractRequestParameterAllowFromStrategy.java
+5
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,12 @@
29
29
*
30
30
* @author Marten Deinum
31
31
* @since 3.2
32
+
* @deprecated ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/header/writers/frameoptions/RegExpAllowFromStrategy.java
+5
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,12 @@
26
26
*
27
27
* @author Marten Deinum
28
28
* @since 3.2
29
+
* @deprecated ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/header/writers/frameoptions/StaticAllowFromStrategy.java
+6
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,13 @@
20
20
21
21
/**
22
22
* Simple implementation of the {@code AllowFromStrategy}
23
+
*
24
+
* @deprecated ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/header/writers/frameoptions/WhiteListedAllowFromStrategy.java
+5
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,12 @@
24
24
*
25
25
* @author Marten Deinum
26
26
* @since 3.2
27
+
* @deprecated ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/header/writers/frameoptions/XFrameOptionsHeaderWriter.java
+15-1
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,13 @@ public XFrameOptionsHeaderWriter(XFrameOptionsMode frameOptionsMode) {
68
68
*
69
69
* @param allowFromStrategy the strategy for determining what the value for ALLOW_FROM
70
70
* is.
71
+
*
72
+
* @deprecated ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use
0 commit comments