diff --git a/cypress/support/axe.ts b/cypress/support/axe.ts index 4040a983d9e..c0e7a6332af 100644 --- a/cypress/support/axe.ts +++ b/cypress/support/axe.ts @@ -67,3 +67,35 @@ Cypress.Commands.overwrite( ); }, ); + +// Load axe-core into the window under test. +// +// The injectAxe in cypress-axe attempts to load axe via an `eval`. That conflicts with our CSP +// which disallows "unsafe-eval". So, replace it with an implementation that loads it via an +// injected