Skip to content

Commit c0568ea

Browse files
joaquinjsbjzheaux
authored andcommitted
Log Request Mismatch Only When Mismatches
Signed-off-by: Joaquin Santana <joaquinjsb@outlook.com>
1 parent 4048b2b commit c0568ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/main/java/org/springframework/security/web/header/writers/ClearSiteDataHeaderWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -75,6 +75,7 @@ public void writeHeaders(HttpServletRequest request, HttpServletResponse respons
7575
if (!response.containsHeader(CLEAR_SITE_DATA_HEADER)) {
7676
response.setHeader(CLEAR_SITE_DATA_HEADER, this.headerValue);
7777
}
78+
return;
7879
}
7980
this.logger.debug(
8081
LogMessage.format("Not injecting Clear-Site-Data header since it did not match the requestMatcher %s",

0 commit comments

Comments
 (0)