Account created on 11 April 2025, about 2 months ago
#

Recent comments

@gapple I tried uninstalling - reinstalling the module version 2.2.2 using drush for the website, as well as using composer. But saw no improvement. The issue still persists.

My database contains this under csp.settings in hex format.

{
  "_core": {
    "default_config_hash": "hRfZ8Hy0OO_H_xuVoHK6yrwiNH3bSgtmzUvg46YVHJ0"
  },
  "enforce": false,
  "report": {
    "handler": "csp-module"
  }
}

I have tried installing CSP version 8.x-1.40, which seems to work as expected and has the following csp.settings:

{
    "_core": {
        "default_config_hash": "hRfZ8Hy000_H_xuVoHK6yrwiNH3bSgtmzUvg46YVHJ0",
        "enforce": False,
        "report": {
            "handler": "csp-module"
        }
    },
    "report-only": {
        "enable": False,
        "directives": {
            "script-src": {"base": "self"},
            "script-src-attr": {"base": "self"},
            "script-src-elem": {"base": "self"},
            "style-src": {"base": "self"},
            "style-src-attr": {"base": "self"},
            "style-src-elem": {"base": "self"},
            "frame-ancestors": {"base": "self"}
        },
        "reporting": {"plugin": "none"}
    },
    "enforce": {
        "enable": False,
        "directives": {
            "script-src": {"base": "self"},
            "script-src-attr": {"base": "self"},
            "script-src-elem": {"base": "self"},
            "style-src": {"base": "self"},
            "style-src-attr": {"base": "self"},
            "style-src-elem": {"base": "self"},
            "frame-ancestors": {"base": "self"}
        },
        "reporting": {"plugin": "none"}
    }
}

However, we prefer to use the latest version (^2.0). Could I be missing certain steps when installing CSP? Or it would be because of certain other dependencies?
Thanks.

I am facing the same issue
I am on drupal.core: 11.1.6, drupal/csp: 2.2.2

The screenshot below shows my configuration object.

Where would I find the said properties?
csp.settings:enforce.reporting
csp.settings:report-only.reporting

I am facing the same issue.
I am on Drupal: 11.1.6, CSP: 2.2.2

The screenshot attached shows my configuration object.

Under which object would I find the following settings
csp.settings:enforce.reporting
csp.settings:report-only.reporting

Please let me know, if you need more information.
Thanks

Production build 0.71.5 2024