Install libplack-middleware-crossorigin-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libplack-middleware-crossorigin-perl
Description:
Plack middleware adding headers to allow CORS
Plack is a set of tools similar to Ruby's Rack or Python's Paste for WSGI. It implements the Perl Server Gateway Interface (PSGI) standard interface, which allows developers to decouple their web application framework from the local web server environment. . Plack::Middleware::CrossOrigin adds Cross Origin Request Sharing headers used by modern browsers to allow XMLHttpRequest to work across domains. This module will also help protect against CSRF attacks in some browsers. . This module attempts to fully conform to the CORS spec, while allowing additional flexibility in the values specified for the of the headers.
Homepage: http://search.cpan.org/dist/Plack-Middleware-CrossOrigin/
Version: 0.012-1
Section: universe/perl