@@ -2,7 +2,6 @@ package io.openfuture.openmessenger.configuration
22
33import io.openfuture.openmessenger.security.AwsCognitoTokenFilter
44import io.openfuture.openmessenger.security.CognitoAuthenticationProvider
5- import jakarta.servlet.http.HttpServletRequest
65import org.springframework.context.annotation.Bean
76import org.springframework.context.annotation.Configuration
87import org.springframework.security.config.Customizer
@@ -14,9 +13,6 @@ import org.springframework.security.config.annotation.web.configurers.SessionMan
1413import org.springframework.security.config.http.SessionCreationPolicy
1514import org.springframework.security.web.SecurityFilterChain
1615import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
17- import org.springframework.web.cors.CorsConfiguration
18- import org.springframework.web.cors.CorsConfigurationSource
19- import org.springframework.web.cors.UrlBasedCorsConfigurationSource
2016
2117@Configuration
2218@EnableWebSecurity
@@ -54,10 +50,9 @@ class SecurityConfig(
5450 " /api/v1/public/login" ,
5551 " /api/v1/public/signup" ,
5652 " /api/v1/attachments/download/**" ,
57- listOf (" /*" , " /webjars/**" , " /js/*" , " /img/*" , " /css/*" , " /video/*" )
53+ listOf (" /*" , " /webjars/**" , " /js/*" , " /img/*" , " /css/*" , " /video/*" ),
5854 " /api/v1/refreshToken" ,
59- " /api/v1/wallets/webhook" ,
60- " /api/v1/attachments/download/**"
55+ " /api/v1/wallets/webhook"
6156 ),
6257 UsernamePasswordAuthenticationFilter ::class .java
6358 )
0 commit comments