HTTP::Promise::Headers::ContentSecurityPolicyReportOnly - Content-Security-Policy-Report-Only Header Field
use HTTP::Promise::Headers::ContentSecurityPolicyReportOnly; my $this = HTTP::Promise::Headers::ContentSecurityPolicyReportOnly->new || die( HTTP::Promise::Headers::ContentSecurityPolicyReportOnly->error, "\n" );
v0.1.0
The following description is taken from Mozilla documentation.
This class inherits all the method from HTTP::Promise::Headers::ContentSecurityPolicy and implements the additional following ones.
The CSP "report_uri" method should be used with this header, otherwise this class will be an expensive no-op interface.
Content-Security-Policy-Report-Only: default-src https:; report-uri /csp-violation-report-endpoint/
This takes an uri where the report will be sent. See this Mozilla documentation for an example php script to use to get those reports.
Jacques Deguest <jack@deguest.jp>
Mozilla documentation and also this documentation
HTTP::Promise, HTTP::Promise::Request, HTTP::Promise::Response, HTTP::Promise::Message, HTTP::Promise::Entity, HTTP::Promise::Headers, HTTP::Promise::Body, HTTP::Promise::Body::Form, HTTP::Promise::Body::Form::Data, HTTP::Promise::Body::Form::Field, HTTP::Promise::Status, HTTP::Promise::MIME, HTTP::Promise::Parser, HTTP::Promise::IO, HTTP::Promise::Stream, HTTP::Promise::Exception
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Promise, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Promise
CPAN shell
perl -MCPAN -e shell install HTTP::Promise
For more information on module installation, please visit the detailed CPAN module installation guide.