|
@@ -51,7 +51,7 @@ public class SecurityConfig {
|
|
|
"/js/**",
|
|
"/js/**",
|
|
|
"/img/**"
|
|
"/img/**"
|
|
|
).permitAll()
|
|
).permitAll()
|
|
|
- .requestMatchers("/api/users", "/api/authorize").authenticated()
|
|
|
|
|
|
|
+ .requestMatchers("/api/users", "/api/authorize", "/api/refresh").authenticated()
|
|
|
.anyRequest().authenticated()
|
|
.anyRequest().authenticated()
|
|
|
)
|
|
)
|
|
|
.sessionManagement(manager -> manager.sessionCreationPolicy(STATELESS))
|
|
.sessionManagement(manager -> manager.sessionCreationPolicy(STATELESS))
|