Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Readify/Owin.ForceHttps

Repository files navigation

OWIN Force HTTPS

A middleware to force HTTPS for OWIN applications.

Install

PS> Install-Package Owin.ForceHttps

Usage

using Owin;
using Microsoft.Owin;

namespace MyApplication {
    public class Startup {
        public void Configuration(IAppBuilder app) {
            app.UseForcedHttps(443);

            //configure other middleware
        }
    }
}

There is also an overload which allows you to specify a different port for HTTPS. Useful for local development.

License

MIT

About

An OWIN middleware to force HTTPS on the site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published