
이버튼을 클릭하면

nginx를 통해서 서버로부터
응답을 받는다.

cors 때문에 nginx -> web의로의 응답에
제한이 있다.

nginx와 server사이의 통신에는 문제가 없지만
web과 nginx 사이에는 cors 제한이
걸리지 않도록 설정이 필요하다.

nginx 설정 파일에 http header를 추가해주는
로직을 작성

다시 버튼을 클릭하면

값을 정상적으로 가지고 온다.
'ops > other' 카테고리의 다른 글
| Cannot serialize at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:97) (0) | 2025.12.10 |
|---|---|
| application.yaml 로딩시 다른 설정 파일도 로딩하기 (0) | 2025.12.09 |
| nginx.conf 작성하기 (0) | 2025.12.09 |
| ubuntu NGINX 설정파일 위치 (0) | 2025.12.09 |
| Nginx 실습 - 1(계획) (0) | 2025.12.08 |