Skip to content

Commit

Permalink
모든 요청 허용 (#15)
Browse files Browse the repository at this point in the history
* Test: 테스트용 application.yml 파일 추가

* Feat: Dockerfile 작성

* Refactor: AI 요구사항에 맞게 코드 수정

* Fix: H2 관련 설정 삭제

* Refactor: 식당 ID를 반환하도록 추가

* Refactor: AI 요구사항에 맞춰 수정

* Refactor: AI 요구사항에 맞도록 수정

* Test: 테스트 코드 수정

* Refactor: 회원 상세정보 필드 추가

* Refactor: 테스트 환경 간 모든 요청 허용
  • Loading branch information
pjh5365 authored Nov 19, 2024
1 parent 2efc85b commit 065b9a7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests(auth -> auth
.requestMatchers("/", "/api/join", "/api/login").permitAll()
.anyRequest().authenticated()
.anyRequest().permitAll()
);
http
.csrf(AbstractHttpConfigurer::disable)
.cors(AbstractHttpConfigurer::disable)
.formLogin(AbstractHttpConfigurer::disable)
.httpBasic(AbstractHttpConfigurer::disable)
.addFilterAt(loginFilter(), UsernamePasswordAuthenticationFilter.class) // 로그인 필터 변경
Expand Down

0 comments on commit 065b9a7

Please sign in to comment.