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
I configured a route for the report feature as described within the documentation. This works quite well in the prod environment, everything is cool. But now when I try to clear the cache of the dev environment, I get that nasty "You have requested a non-existent service "nelmio_security.csp_reporter_controller"." error.
Turns out that in my dev environment, I set the csp to disabled, removing the nelmio_security.csp_reporter_controller service for that environment.
nelmio_security:
csp:
enabled: false
My solution for now is to load the route only for my prod environment, but maybe that behavior should be fixed or at least documented, since my usecase (having csp not enabled in all environments) doesn't seem super exotic.
The text was updated successfully, but these errors were encountered:
Hi,
I configured a route for the report feature as described within the documentation. This works quite well in the prod environment, everything is cool. But now when I try to clear the cache of the dev environment, I get that nasty "You have requested a non-existent service "nelmio_security.csp_reporter_controller"." error.
Turns out that in my dev environment, I set the csp to disabled, removing the nelmio_security.csp_reporter_controller service for that environment.
My solution for now is to load the route only for my prod environment, but maybe that behavior should be fixed or at least documented, since my usecase (having csp not enabled in all environments) doesn't seem super exotic.
The text was updated successfully, but these errors were encountered: