From a94e08d875b003707a6ccf6bd28872fb99e8edb0 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Mon, 9 Sep 2024 06:46:14 +0200 Subject: [PATCH] feat: allow blob as connect-src --- deployments/examples/ocis_full/config/ocis/csp.yaml | 1 + deployments/examples/ocis_keycloak/config/ocis/csp.yaml | 1 + services/proxy/pkg/config/csp.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/deployments/examples/ocis_full/config/ocis/csp.yaml b/deployments/examples/ocis_full/config/ocis/csp.yaml index d8615b85a6..fb46082e7d 100644 --- a/deployments/examples/ocis_full/config/ocis/csp.yaml +++ b/deployments/examples/ocis_full/config/ocis/csp.yaml @@ -3,6 +3,7 @@ directives: - '''self''' connect-src: - '''self''' + - 'blob:' - 'https://${COMPANION_DOMAIN|companion.owncloud.test}/' - 'wss://${COMPANION_DOMAIN|companion.owncloud.test}/' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' diff --git a/deployments/examples/ocis_keycloak/config/ocis/csp.yaml b/deployments/examples/ocis_keycloak/config/ocis/csp.yaml index 2ba7ee2445..bdd0f60572 100644 --- a/deployments/examples/ocis_keycloak/config/ocis/csp.yaml +++ b/deployments/examples/ocis_keycloak/config/ocis/csp.yaml @@ -3,6 +3,7 @@ directives: - '''self''' connect-src: - '''self''' + - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' # In contrary to bash and docker the default is given after the | character - 'https://${KEYCLOAK_DOMAIN|keycloak.owncloud.test}/' diff --git a/services/proxy/pkg/config/csp.yaml b/services/proxy/pkg/config/csp.yaml index 58cd0645fe..7542867caa 100644 --- a/services/proxy/pkg/config/csp.yaml +++ b/services/proxy/pkg/config/csp.yaml @@ -3,6 +3,7 @@ directives: - '''self''' connect-src: - '''self''' + - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' default-src: - '''none'''