Skip to content

Commit 505fdc9

Browse files
committed
[CICD] nginx.conf 원본으로 숮ㅇ
1 parent 264ece2 commit 505fdc9

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

nginx.conf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ server {
1010
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
1111

1212
location / {
13-
if ($request_method = 'OPTIONS') {
14-
# 'http://localhost:3000' 및 'https://fitfit.site' 등을 직접 명시
15-
add_header 'Access-Control-Allow-Origin' 'http://localhost:3000' always;
16-
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
17-
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, *' always;
18-
add_header 'Access-Control-Allow-Credentials' 'true' always;
19-
return 204;
20-
}
21-
22-
# 백엔드 응답이 돌아올 때도 CORS 헤더를 재전달/추가
23-
add_header 'Access-Control-Allow-Origin' 'http://localhost:3000' always;
24-
add_header 'Access-Control-Allow-Credentials' 'true' always;
2513

2614
# 요청을 내부 스프링 앱(8080 포트)으로 전달하는 것은 동일합니다.
2715
proxy_pass http://127.0.0.1:8080;

0 commit comments

Comments
 (0)