Skip to content

Commit bffc02b

Browse files
authored
Merge pull request kubernetes#125738 from pohly/hack-local-up-cluster-cors-fix
hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
2 parents 921b69b + 8cb4a19 commit bffc02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/local-up-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ EXTERNAL_HOSTNAME=${EXTERNAL_HOSTNAME:-localhost}
242242
KUBELET_HOST=${KUBELET_HOST:-"127.0.0.1"}
243243
KUBELET_RESOLV_CONF=${KUBELET_RESOLV_CONF:-"/etc/resolv.conf"}
244244
# By default only allow CORS for requests on localhost
245-
API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$}
245+
API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-//127.0.0.1(:[0-9]+)?$,//localhost(:[0-9]+)?$}
246246
KUBELET_PORT=${KUBELET_PORT:-10250}
247247
# By default we use 0(close it) for it's insecure
248248
KUBELET_READ_ONLY_PORT=${KUBELET_READ_ONLY_PORT:-0}

0 commit comments

Comments
 (0)