HTTPS-only middleware for snicco/http-routing
A middleware for the snicco/http-routing
component that will redirect all http
requests to https
.
composer require snicco/https-only-middleware
This middleware should be added for globally in the MiddlewareResolver
.
There are no configuration options besides a boolean
flag in the constructor to indicate a local environment (to suppress the redirect).
This repository is a read-only split of the development repo of the Snicco project.
This is how you can contribute.
Please report issues in the Snicco monorepo.
If you discover a security vulnerability, please follow our disclosure procedure.