mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
KOS Mock 서비스에 CORS 설정 추가하여 브라우저 CORS 에러 해결
- SecurityConfig.java에 CORS 설정 추가 - 모든 Origin 패턴 허용 및 OPTIONS 요청 처리 - application.yml에 허용 도메인 설정 추가 - 브라우저에서 Mock 데이터 생성 API 호출 시 CORS 에러 해결
This commit is contained in:
parent
1bcf004e51
commit
3e96b33001
Binary file not shown.
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user