You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Right, it'd probably make sense to look at the DumpDataCollector in dev environment, and do something similar to symfony/symfony@bbb4d9f - if someone wants to PR this.. :)
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
The text was updated successfully, but these errors were encountered: