File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
web/src/main/java/software/xdev/sse/web/hsts Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ # 1.5.1
2+ * Fix HSTS customization logic not working as expected
3+
14# 1.5.0
25* Vaadin
36 * Made the way ` HttpSecurity#securityMatcher ` is applied in Sidecars customizable #221
Original file line number Diff line number Diff line change 1717
1818import jakarta .annotation .Nullable ;
1919
20+ import org .slf4j .Logger ;
21+ import org .slf4j .LoggerFactory ;
2022import org .springframework .boot .web .server .Ssl ;
2123import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
2224import org .springframework .security .config .annotation .web .configurers .HeadersConfigurer ;
4042 */
4143public class DefaultHstsApplier implements HstsApplier
4244{
45+ private static final Logger LOG = LoggerFactory .getLogger (DefaultHstsApplier .class );
46+
4347 protected final boolean enabled ;
4448
4549 public DefaultHstsApplier (
4650 final HstsConfig config ,
4751 @ Nullable final Ssl ssl )
4852 {
49- this .enabled = ! Boolean .FALSE .equals (config .isEnabled ()) // true or null
53+ this .enabled = Boolean .TRUE .equals (config .isEnabled ())
5054 || ssl != null && ssl .isEnabled ();
55+ LOG .debug ("HSTS enabled={}" , this .enabled );
5156 }
5257
5358 @ Override
You can’t perform that action at this time.
0 commit comments