Fix CSP problems due to cypress-axe (#10843)

* Fix CSP problems due to cypress-axe

Rewrite `injectAxe` to use a script tag instead of an `eval`.

* remove gha workflow hack
This commit is contained in:
Richard van der Hoff 2023-05-11 11:31:09 +01:00 committed by GitHub
parent 41c96877d3
commit 3c32ad7cab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 4 deletions

View file

@ -135,10 +135,6 @@ 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: