CORS in Perl PSGI scripts

The module Plack::Middleware::CrossOrigin provides a complete CORS server side implementation. To allow any request from any location, just add this to your builder:

    enable 'CrossOrigin', origins => '*';

This module is also available in Debian and Ubuntu as libplack-middleware-crossorigin-perl.

For other Perl-related uses see the CGI page.

Who’s behind this

Monsur Hossain and Michael Hausenblas


The content on this site stays fresh thanks to help from users like you! If you have suggestions or would like to contribute, fork us on GitHub.

Buy the book

Save 39% on CORS in Action with promotional code hossainco at