Disable CSP header on exception pages only in debug
Disable CSP header on exception pages only in debug

Same condition is used by default TwigBridge ExceptionController
to evaluate if styled exception page is supposed to be shown.

symfony/twig-bundle,symfony/twig-bundle