From 8cb4a194504cc4c29aeef6da45afb495cfc71a7c Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 26 Jun 2024 18:50:12 +0200 Subject: [PATCH] hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins https://github.com/kubernetes/kubernetes/pull/112809 tightened what regular expressions are allowed and now requires that they start matching with a double dash. --- hack/local-up-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index fa843c50c70..31883ac147b 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -242,7 +242,7 @@ EXTERNAL_HOSTNAME=${EXTERNAL_HOSTNAME:-localhost} KUBELET_HOST=${KUBELET_HOST:-"127.0.0.1"} KUBELET_RESOLV_CONF=${KUBELET_RESOLV_CONF:-"/etc/resolv.conf"} # By default only allow CORS for requests on localhost -API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$} +API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-//127.0.0.1(:[0-9]+)?$,//localhost(:[0-9]+)?$} KUBELET_PORT=${KUBELET_PORT:-10250} # By default we use 0(close it) for it's insecure KUBELET_READ_ONLY_PORT=${KUBELET_READ_ONLY_PORT:-0}