KOS Mock 서비스에 CORS 설정 추가하여 브라우저 CORS 에러 해결

- SecurityConfig.java에 CORS 설정 추가
- 모든 Origin 패턴 허용 및 OPTIONS 요청 처리
- application.yml에 허용 도메인 설정 추가
- 브라우저에서 Mock 데이터 생성 API 호출 시 CORS 에러 해결
This commit is contained in:
hiondal 2025-09-11 13:16:51 +09:00
parent 1bcf004e51
commit 3e96b33001
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -82,3 +82,5 @@ springdoc:
operations-sorter: alpha operations-sorter: alpha
show-actuator: true show-actuator: true
paths-to-exclude: /actuator/** paths-to-exclude: /actuator/**
cors:
allowed-origins: "http://localhost:3000,http://phonebill.20.214.196.128.nip.io,http://phonebill-front.20.214.196.128.nip.io"