Plack::Middleware::P3P - Add standard (or custom) P3P header to response
version 0.001
use Plack::Builde; use Plack::Middleware::P3P builder { enable 'P3P'; $app; }
or with custom policies:
builder { enable 'P3P', policies => 'FBI CIA NSA'; $app; }
or with an array of custom policies:
builder { enable 'P3P', policies => ['FBI', 'CIA', 'NSA']; $app; }
This Plack::Middleware adds a P3P header to all responses (see the W3C page). By default at adds the CAO, PSA and OUR policies. The default policies are enough to make Internet Explorer accept cookies from an iframe, the raison d'etre for this module.
Sets custom policies in the P3P header. Policies can be specified as a string or as an array of strings.
Plack::Middleware, Plack::Middleware::Headers
Hans Staugaard <staugaard@cpan.org>
This software is copyright (c) 2014 by Hans Staugaard.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Plack::Middleware::P3P, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::P3P
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::P3P
For more information on module installation, please visit the detailed CPAN module installation guide.