Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You have requested a non-existent service "nelmio_security.csp_reporter_controller" when csp is disabled #196

Open
spackmat opened this issue Mar 7, 2019 · 0 comments

Comments

@spackmat
Copy link

spackmat commented Mar 7, 2019

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant