Skip to content

Commit

Permalink
Merge pull request #43 from Central-MakeUs/refactor/37
Browse files Browse the repository at this point in the history
Ci/Cd: Nginx CORS 중복 헤더 제거
  • Loading branch information
yxhwxn authored Aug 16, 2024
2 parents 94e8308 + 0fa9a8e commit 7e1c795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ out/

### VS Code ###
.vscode/

app.log
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 7e1c795

Please sign in to comment.