Skip to content

Commit 10cf5c2

Browse files
committed
fix k8s mercure CORS
1 parent d20ebd6 commit 10cf5c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/deploy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi
5858
# Perform a rolling update if a release in the given namespace ever exist, create one otherwise.
5959
echo "Installing/upgrading release '${RELEASE}' on namespace '${NAMESPACE}'"
6060
helm upgrade --install --reset-values --force --namespace=$NAMESPACE --recreate-pods $RELEASE ./api/helm/api \
61-
--set php.corsAllowOrigin=$CORS_ALLOW_ORIGIN \
61+
--set php.corsAllowOrigin="https://${CLIENT_BUCKET}\,https://${ADMIN_BUCKET}" \
6262
--set php.trustedHosts=$TRUSTED_HOSTS \
6363
--set php.repository=$PHP_REPOSITORY,php.tag=$TAG \
6464
--set php.mercure.jwt=$MERCURE_JWT \
@@ -76,7 +76,7 @@ helm upgrade --install --reset-values --force --namespace=$NAMESPACE --recreate-
7676
--set mercure.publishUrl="http://${RELEASE}-mercure/hub" \
7777
--set mercure.subscribeUrl="https://${MERCURE_ENTRYPOINT}/hub" \
7878
--set mercure.jwtKey=$MERCURE_JWT_KEY \
79-
--set mercure.corsAllowedOrigins="$CLIENT_BUCKET" \
79+
--set mercure.corsAllowedOrigins="https://${CLIENT_BUCKET}\,https://${ADMIN_BUCKET}" \
8080
--set mercure.domainFilters="{$DOMAIN}"
8181

8282
# Reload fixtures: this is specific for this project!

0 commit comments

Comments
 (0)