1.0.4 • Published 5 years ago
@oauthanon/express v1.0.4
OAuthAnon: Express
Collection of middleware and utilities for express.
Middleware: azureAppService
Express middleware which modifies the request object based on Azure App Service specific headers.
- Set the protocol to
https
if theX-ARR-SSL
header is present and thetrust proxy
setting is enabled.
Middleware: hsts
Express middleware which adds the Strict-Transport-Security
to the response when the request is secure.
Does not set the header for localhost.
Middleware: httpsOrNotFound
Express middleware which returns a 404 status if the request is not secure.
Does not enforce HTTPS for localhost.
Middleware: httpsOrRedirect
Express middleware which redirects to HTTPS if the request is not secure.
Does not enforce HTTPS for localhost.