Readify / Owin.ForceHttps

An OWIN middleware to force HTTPS on the site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C# 60.5%Language:F# 39.5%