1.0.4 • Published 5 years ago

@oauthanon/express v1.0.4

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 years ago

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 the X-ARR-SSL header is present and the trust 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.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago