/** * Configures the unsecured public resources. * * @param web web sec object * @throws Exception ex */ @Override public void configure(WebSecurity web) throws Exception { web.ignoring().requestMatchers(IgnoredRequestMatcher.INSTANCE); DefaultHttpFirewall firewall = new DefaultHttpFirewall(); firewall.setAllowUrlEncodedSlash(true); web.httpFirewall(firewall); //web.debug(true); }
@Bean public HttpFirewall allowUrlEncodedSlashHttpFirewall() { DefaultHttpFirewall firewall = new DefaultHttpFirewall(); firewall.setAllowUrlEncodedSlash(true); return firewall; }
@Bean public HttpFirewall defaultFireWall() { DefaultHttpFirewall firewall = new DefaultHttpFirewall(); firewall.setAllowUrlEncodedSlash(true); return firewall; }