일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- grpc
- spring
- jenkins maven
- java
- JavaScript
- docker network
- Jenkins Pipeline
- MongoDB
- grafana
- Jenkins
- jenkins github
- REACT
- jenkins jdk
- jenkins install
- error
- subnetmask
- Linux
- Docker
- CI/CD
- jpa
- nginx
- IntelliJ
- jenkins 설치
- Spring Boot
- jenkins github 연동
- 리눅스
- 리액트
- vue.js
- gradle
- MySQL
- Today
- Total
목록Spring Security (2)
뭐든 즐기면서 ;)
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.web.SecurityFilterChain; import static org.springframework.security.config.Cu..

Error 내용 모든 요청에 대해 permitAll을 설정했음에도, API request 시 response 403 Forbidden 오류 발생. 해결 방법 @Configuration @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests((authz) -> authz .anyRequest().permitAll() ).httpBasic(withDefaults()); // 아래 코드 추가하면 오류 해결 http.csrf().disable(); return http.build(); ..