From c9083e56884a45a5b7d22dd3dd9c11990bcfd825 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 26 Apr 2023 16:02:46 +0100 Subject: [PATCH] Fix cypress tests exploding due to CSP --- .github/workflows/cypress.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index d753ec0312d..8fd1156900c 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -134,6 +134,10 @@ jobs: persist-credentials: false path: matrix-react-sdk + # This is necessary as Cypress relies on eval for passing functions between processes + - name: Allow CSP script-src unsafe-eval + run: sed -i "s/script-src /script-src 'unsafe-eval' /" ../webapp/index.html + - name: Run Cypress tests uses: cypress-io/github-action@59c3b9b4a1a6e623c29806797d849845443487d1 with: