With the merger of this dated patch, we are not setting the Reporting-Endpoints header and thus improperly setting the corresponding report-to CSP directive. I think when T249513 was filed, it was assumed that report-to would just use the same reporting URL pattern as report-uri, but that is not the case. A reporting endpoint first needs to be named and then associated with the report-to directive, e.g.
Reporting-Endpoints: csp-endpoint="https://example.com" Content-Security-Policy: default-src 'self'; report-to csp-endpoint;
Eventually we should also fully drop support for report-uri in MediaWiki, which it looks like might be possible according to caniuse...
