Skip to content

Commit 0e61e76

Browse files
committed
chore: allow preflight request
1 parent e6d4062 commit 0e61e76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/climbup/climbup/global/config/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
3535
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
3636
)
3737
.authorizeHttpRequests(auth -> auth
38+
.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll()
3839
.requestMatchers("/", "/api/auth/refresh", "/login/**", "/oauth2/**",
3940
"/login/oauth2/code/*", "/error", "/css/**", "/js/**",
4041
"/images/**", "/favicon.ico").permitAll()

0 commit comments

Comments
 (0)