Skip to content

Commit df3f551

Browse files
committed
포워드 허용 추가
1 parent 4716ef2 commit df3f551

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/src/main/java/_team/onmyway/config/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import _team.onmyway.security.OAuthSuccessHandler;
66
import _team.onmyway.security.JwtAuthenticationFilter;
77
import _team.onmyway.service.CustomOAuthUserService;
8+
import jakarta.servlet.DispatcherType;
89
import lombok.RequiredArgsConstructor;
910
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
1011
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
@@ -35,6 +36,7 @@ SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
3536
http
3637
.cors(cors -> cors.configurationSource(corsConfigurationSource()))
3738
.authorizeHttpRequests(authorizeRequests -> authorizeRequests
39+
.dispatcherTypeMatchers(DispatcherType.FORWARD, DispatcherType.INCLUDE).permitAll()
3840
.requestMatchers(
3941
"/",
4042
"/find-route",

0 commit comments

Comments
 (0)