Skip to content

Commit

Permalink
Fix: Nginx CORS 중복 헤더 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
yxhwxn committed Aug 16, 2024
1 parent f23128a commit 0fa9a8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .platform/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ http {
location / {
proxy_pass http://springboot;
# CORS 관련 헤더 추가
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type';
# add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
# add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type';
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
Expand All @@ -62,6 +62,6 @@ http {
gzip_comp_level 4;

# Include the Elastic Beanstalk generated locations
include conf.d/elasticbeanstalk/healthd.conf;
# include conf.d/elasticbeanstalk/healthd.conf;
}
}

0 comments on commit 0fa9a8e

Please sign in to comment.