diff --git a/build.gradle b/build.gradle index a355bd44..84203151 100644 --- a/build.gradle +++ b/build.gradle @@ -29,11 +29,11 @@ dependencies { implementation 'org.postgresql:postgresql:42.7.3' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.9' - implementation 'io.jsonwebtoken:jjwt-api:0.11.5' + implementation 'io.jsonwebtoken:jjwt-api:0.12.6' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' annotationProcessor 'jakarta.persistence:jakarta.persistence-api:3.1.0' - runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5' - runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5' + runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6' + runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6' compileOnly 'org.projectlombok:lombok' runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.projectlombok:lombok' diff --git a/src/main/java/com/backend/server/config/security/SecurityConfig.java b/src/main/java/com/backend/server/config/security/SecurityConfig.java index 336389b5..694c2bca 100644 --- a/src/main/java/com/backend/server/config/security/SecurityConfig.java +++ b/src/main/java/com/backend/server/config/security/SecurityConfig.java @@ -32,17 +32,17 @@ public class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { RequestMatcher requestMatcher = new OrRequestMatcher( - new AntPathRequestMatcher("/swagger-ui/**"), - new AntPathRequestMatcher("/swagger-ui.html"), - new AntPathRequestMatcher("/v3/api-docs/**"), - new AntPathRequestMatcher("/swagger-resources/**"), - new AntPathRequestMatcher("/swagger-resources"), - new AntPathRequestMatcher("/webjars/**"), - new AntPathRequestMatcher("/configuration/ui"), - new AntPathRequestMatcher("/configuration/security"), - new AntPathRequestMatcher("/api/auth/sign-in"), - new AntPathRequestMatcher("/api/auth/token/refresh"), - new AntPathRequestMatcher("/api/health-check") + AntPathRequestMatcher.antMatcher("/swagger-ui/**"), + AntPathRequestMatcher.antMatcher("/swagger-ui.html"), + AntPathRequestMatcher.antMatcher("/v3/api-docs/**"), + AntPathRequestMatcher.antMatcher("/swagger-resources/**"), + AntPathRequestMatcher.antMatcher("/swagger-resources"), + AntPathRequestMatcher.antMatcher("/webjars/**"), + AntPathRequestMatcher.antMatcher("/configuration/ui"), + AntPathRequestMatcher.antMatcher("/configuration/security"), + AntPathRequestMatcher.antMatcher("/api/auth/sign-in"), + AntPathRequestMatcher.antMatcher("/api/auth/token/refresh"), + AntPathRequestMatcher.antMatcher("/api/health-check") ); List origins = List.of(