Skip to content

Commit fb221eb

Browse files
authored
fix: 시큐리티 수정 (#133)
* fix: 에러 코드 변경 * fix: cors 허용 메서드 수정 * fix: 로그인 anonymous 해제 * fix: 시큐리티 컨픽 불필요한 부분 삭제
1 parent 6835de7 commit fb221eb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/com/oronaminc/join/member/security/SecurityConfig.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
3030
.csrf(csrf -> csrf.disable())
3131
.cors(cors -> cors.configurationSource(corsConfigurationSource()))
3232
.authorizeHttpRequests(auth -> auth
33-
.requestMatchers(
34-
"/api/auth/guest",
35-
"/api/auth/kakao",
36-
"/login"
37-
)
38-
.anonymous()
33+
// .requestMatchers(
34+
// "/api/auth/guest",
35+
// "/api/auth/kakao",
36+
// "/login"
37+
// )
38+
// .anonymous()
3939
.requestMatchers(
4040
"/swagger-ui/**",
4141
"/swagger-resources/**",
@@ -47,8 +47,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
4747
"/ws/**"
4848
)
4949
.permitAll()
50-
.requestMatchers("/ws/**").permitAll()
51-
.anyRequest().authenticated()
50+
.anyRequest()
51+
.authenticated()
5252
)
5353
.formLogin(AbstractHttpConfigurer::disable)
5454
.oauth2Login(oauth2 -> oauth2.userInfoEndpoint(userInfo -> userInfo

0 commit comments

Comments
 (0)