We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e7363 commit 692ac21Copy full SHA for 692ac21
web/src/main/java/org/springframework/security/web/firewall/StrictHttpFirewall.java
@@ -237,6 +237,14 @@ public void setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent) {
237
}
238
239
240
+ /**
241
+ * <p>
242
+ * Determines which hostnames should be allowed. The default is to allow any hostname.
243
+ * </p>
244
+ *
245
+ * @param allowedHostnames the set of allowed hostnames
246
+ * @since 4.2.17
247
+ */
248
public void setAllowedHostnames(Collection<String> allowedHostnames) {
249
if (allowedHostnames == null) {
250
throw new IllegalArgumentException("allowedHostnames cannot be null");
0 commit comments