The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojolicious::Plugin::SecureOnly - Mojolicious Plugin to force all requests secure.

SYNOPSIS

  # Mojolicious
  $self->plugin('SecureOnly');

  # Mojolicious::Lite
  plugin 'SecureOnly' => {secureport => 3001};

DESCRIPTION

Mojolicious::Plugin::SecureOnly is a Mojolicious plugin that will redirect all insecure requests to a secure resource.

METHODS

Mojolicious::Plugin::SecureOnly inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

  $plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us.