After installing this and setting a strict Content Security Policy, I noticed that the Twig dump() function no longer shows pretty HTML-formatted output. It still outputs, but it doesn't have any styling or javascript toggles, due to inline script and inline styles being blocked.
Is there some way to detect when a dump() is included in the response, and disable CSP just for the current request?
I found a similar issue here symfony/symfony#29084 but the solution there doesn't seem to work when this bundle is installed.
Thanks
After installing this and setting a strict Content Security Policy, I noticed that the Twig dump() function no longer shows pretty HTML-formatted output. It still outputs, but it doesn't have any styling or javascript toggles, due to inline script and inline styles being blocked.
Is there some way to detect when a dump() is included in the response, and disable CSP just for the current request?
I found a similar issue here symfony/symfony#29084 but the solution there doesn't seem to work when this bundle is installed.
Thanks