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

Latest commit

 

History

History
32 lines (22 loc) · 520 Bytes

readme.md

File metadata and controls

32 lines (22 loc) · 520 Bytes

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