From ece4ef529c8c67d17a7872526db8e47b3786a2fd Mon Sep 17 00:00:00 2001 From: Prajwol Amatya Date: Thu, 2 May 2024 09:57:57 +0545 Subject: [PATCH] update csp.yaml file --- tests/drone/csp.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/drone/csp.yaml b/tests/drone/csp.yaml index 01251e9ad58..6cba1070549 100644 --- a/tests/drone/csp.yaml +++ b/tests/drone/csp.yaml @@ -3,7 +3,8 @@ directives: - '''self''' connect-src: - '''self''' - - 'https://${KEYCLOAK_DOMAIN:-keycloak:8443}/' + # In contrast to bash and docker the default is given after the | character + - 'https://${KEYCLOAK_DOMAIN|keycloak:8443}/' default-src: - '''none''' font-src: @@ -13,14 +14,16 @@ directives: frame-src: - '''self''' - 'https://embed.diagrams.net/' - - 'https://${ONLYOFFICE_DOMAIN:-onlyoffice:443}/' - - 'https://${COLLABORA_DOMAIN:-collabora:9980}/' + # In contrast to bash and docker the default is given after the | character + - 'https://${ONLYOFFICE_DOMAIN|onlyoffice:443}/' + - 'https://${COLLABORA_DOMAIN|collabora:9980}/' img-src: - '''self''' - 'data:' - 'blob:' - - 'https://${ONLYOFFICE_DOMAIN:-onlyoffice:443}/' - - 'https://${COLLABORA_DOMAIN:-collabora:9980}/' + # In contrast to bash and docker the default is given after the | character + - 'https://${ONLYOFFICE_DOMAIN|onlyoffice:443}/' + - 'https://${COLLABORA_DOMAIN|collabora:9980}/' manifest-src: - '''self''' media-src: