NAME
HTTP::Promise::Headers::ContentSecurityPolicyReportOnly - Content-Security-Policy-Report-Only Header Field
SYNOPSIS
use HTTP::Promise::Headers::ContentSecurityPolicyReportOnly;
my $this = HTTP::Promise::Headers::ContentSecurityPolicyReportOnly->new || die( HTTP::Promise::Headers::ContentSecurityPolicyReportOnly->error, "\n" );
VERSION
v0.1.0
DESCRIPTION
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/
METHODS
report_uri
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.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
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 & LICENSE
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.