|
@@ -92,9 +92,14 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|
|
.and()
|
|
|
.authorizeRequests()
|
|
|
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
|
|
|
- .antMatchers("/v2/api-docs", "/swagger-resources/configuration/ui",
|
|
|
- "/swagger-resources", "/swagger-resources/configuration/security",
|
|
|
- "/swagger-ui.html", "/webjars/**").permitAll()
|
|
|
+ .antMatchers("/v2/api-docs",
|
|
|
+ "/swagger-resources/configuration/ui",
|
|
|
+ "/swagger-resources",
|
|
|
+ "/swagger-resources/configuration/security",
|
|
|
+ "/swagger-ui.html",
|
|
|
+ "/webjars/**",
|
|
|
+ "/app/image/**"
|
|
|
+ ).permitAll()
|
|
|
|
|
|
.anyRequest()
|
|
|
.access("@rbacauthorityservice.hasPermission(request,authentication)") // RBAC 动态 url 认证
|