|
@@ -47,6 +47,8 @@ public class SpringSecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|
|
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
|
|
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
|
|
|
.and()
|
|
.and()
|
|
|
// auth
|
|
// auth
|
|
|
|
|
+ .anonymous()
|
|
|
|
|
+ .and()
|
|
|
.authorizeRequests()
|
|
.authorizeRequests()
|
|
|
.antMatchers(
|
|
.antMatchers(
|
|
|
"/api/user/sendMessage",
|
|
"/api/user/sendMessage",
|
|
@@ -62,8 +64,6 @@ public class SpringSecurityConfiguration extends WebSecurityConfigurerAdapter {
|
|
|
.and()
|
|
.and()
|
|
|
.authorizeRequests()
|
|
.authorizeRequests()
|
|
|
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
|
|
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
|
|
|
- .and()
|
|
|
|
|
- .authorizeRequests()
|
|
|
|
|
.antMatchers("/api/**")
|
|
.antMatchers("/api/**")
|
|
|
.authenticated()
|
|
.authenticated()
|
|
|
.and()
|
|
.and()
|