Skip to content

Commit

Permalink
fix: add CORS_ALLOWED_ORIGIN in the nginx env
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnhankim authored and dekobon committed Mar 2, 2023
1 parent 47d58be commit c7db9c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions standalone_ubuntu_oss_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ if [ -z "${CORS_ALLOWED_ORIGIN+x}" ]; then
CORS_ALLOWED_ORIGIN="*"
fi

cat >> "/etc/nginx/environment" << EOF
CORS_ALLOWED_ORIGIN=${CORS_ALLOWED_ORIGIN}
EOF

# Only include these env vars if we are not using a instance profile credential
# to obtain S3 permissions.
if [ $uses_iam_creds -eq 0 ]; then
Expand Down

0 comments on commit c7db9c9

Please sign in to comment.