Skip to content

Commit

Permalink
chore: nginx 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHyeon0409 committed Nov 25, 2024
1 parent 005f960 commit 012d75c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

# Origin 헤더 유지
proxy_set_header Origin $http_origin;

# CORS 설정 추가
add_header 'Access-Control-Allow-Origin' 'https://www.corinee.site' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
Expand Down

0 comments on commit 012d75c

Please sign in to comment.