We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264e17c commit 7b95684Copy full SHA for 7b95684
.github/workflows/deploy-cors-proxy.yml
@@ -74,11 +74,11 @@ jobs:
74
CUSTOM_ORIGINS_PHP="<?php define('PLAYGROUND_CORS_PROXY_SUPPORTED_ORIGINS', array("
75
76
readarray -t CUSTOM_ORIGINS <<< "${CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED}"
77
- for origin in $CUSTOM_ORIGINS; do
+ for origin in "${CUSTOM_ORIGINS[@]}"; do
78
if ! [[
79
$origin =~ ^https?:\/\/(?:[a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?::\d{1,5})?$
80
]]; then
81
- echo "Unable to use CUSTOM_SUPPORTED_ORIGINS_SPACE_SEPARATED"
+ echo "Unable to use CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED"
82
echo "Invalid origin: '$origin'"
83
exit -1;
84
fi
0 commit comments