Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
 
 

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages