Removed cross origin header add lines

This commit is contained in:
2022-12-14 08:41:08 +00:00
parent b52f04347c
commit 9373f2ba3b
2 changed files with 1 additions and 3 deletions

View File

@@ -85,7 +85,6 @@ if [[ "$HTTP_PORT" != "" && "$HTTP_PORT" != "80" ]]; then
else
echo "location / {"
echo "add_header 'Access-Control-Allow-Origin' '*' always;"
if [[ "$ALLOWED_NETWORK" != "" ]]; then
ALLOWED_NETWORK_IDX=$(jq -r '.ALLOWED_NETWORK | length' $DOMAIN_SOURCE)
@@ -186,7 +185,6 @@ location = /$ERROR_PAGE {
echo "return 301 $REDIRECT_HTTPS;"
else
echo "location / {"
echo "add_header 'Access-Control-Allow-Origin' '*' always;"
if [[ "$ALLOWED_NETWORK" != "" ]]; then
ALLOWED_NETWORK_IDX=$(jq -r '.ALLOWED_NETWORK | length' $DOMAIN_SOURCE)