nelmio / NelmioSecurityBundle

Adds extra security-related features in your Symfony application

Home Page:https://symfony.com/bundles/NelmioSecurityBundle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSP content_types stopped working

thomas2411 opened this issue · comments

I have just realized that on Symfony 4.2 project the setting of content_types stopped working:

Previously I have used:

    csp:
        enabled: true
        report_logger_service: logger
        hosts: []
        content_types: ['text/html']

Now it doesn't work. It doesn't show CSP headers at all.
Even when I have changed it to:


    csp:
        enabled: true
        report_logger_service: logger
        hosts: []
        content_types: ['text/html; charset=utf-8','text/html; charset=UTF-8', 'text/html']

Would you be okay to push a reproducer on a repository?

Closing as no info provided and very old