List of usage examples for org.springframework.security.config.annotation.web.builders WebSecurity httpFirewall
HttpFirewall httpFirewall
To view the source code for org.springframework.security.config.annotation.web.builders WebSecurity httpFirewall.
Click Source Link
From source file:org.devgateway.toolkit.web.spring.WebSecurityConfig.java
@Override public void configure(final WebSecurity web) throws Exception { web.httpFirewall(allowUrlEncodedSlashHttpFirewall()).ignoring() .antMatchers("/", "/home", "/v2/api-docs/**", "/swagger-ui.html**", "/webjars/**", "/images/**", "/configuration/**", "/swagger-resources/**", "/dashboard", "/languages/**", "/isAuthenticated", "/wicket/resource/**/*.ttf", "/wicket/resource/**/*.woff", "/corruption-risk",//from w w w. j a v a 2 s. c o m SecurityUtil.getDisabledApiSecurity(adminSettingsRepository) ? "/api/**" : "/", "/wicket/resource/**/*.woff2", "/wicket/resource/**/*.css.map") .antMatchers(allowedApiEndpoints); }