Fix typo in CSP Report-To header name
authorThomas Citharel <tcit@tcit.fr>
Fri, 4 Nov 2022 08:43:13 +0000 (09:43 +0100)
committerThomas Citharel <tcit@tcit.fr>
Fri, 4 Nov 2022 14:02:13 +0000 (15:02 +0100)
commit4d0a51221a392b8effe7f2e7dec9f95e5a694802
tree5141af9ece0ddef7e21a6067e8c49a63f6ddd4eb
parent7cfce562a9b43562bdc59effcc44d0396f618aee
Fix typo in CSP Report-To header name

The header name was Report-To, not Reply-To.

In any case, that's now being changed to the Reporting-Endpoints HTTP
Response Header.
https://w3c.github.io/reporting/#header
https://github.com/w3c/reporting/issues/177

CanIUse says the Report-To header is still supported by current Chrome
and friends.
https://caniuse.com/mdn-http_headers_report-to

It doesn't have any data for the Reporting-Endpoints HTTP header, but
this article says Chrome 96 supports it.
https://web.dev/reporting-api/

(Even though that's come out one year ago, that's not compatible with
Network Error Logging which's still using the Report-To version of the
API)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
lib/pleroma/web/plugs/http_security_plug.ex
test/pleroma/web/plugs/http_security_plug_test.exs