Plack::Middleware::SecureHeaders - manage security headers middleware
use Plack::Builder; builder { enable 'SecureHeaders'; $app; };
This middleware manages HTTP headers to protect against XSS attacks, insecure connections, content type sniffing, etc. Specifically, this module manages two things. One is Content-Type validation. Second is using HTTP::SecureHeaders to set secure HTTP headers.
NOTE: To protect against these attacks, sanitization of user input values and other protections are also required.
Secure HTTP headers can be changed as follows:
use Plack::Builder; builder { enable 'SecureHeaders', secure_headers => HTTP::SecureHeaders->new( x_frame_options => 'DENY' ); $app; };
HTTP::SecureHeaders
Copyright (C) kfly8.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
kfly8 <kfly@cpan.org>
To install Plack::Middleware::SecureHeaders, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::SecureHeaders
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::SecureHeaders
For more information on module installation, please visit the detailed CPAN module installation guide.