Closed jkotalik closed 7 years ago
Per offline feedback,
HttpsEnforcement -> HttpsPolicy for everything?
My standing suggestion is a top level config key / environment variable HttpsPort that would be set by VS when launching the process. VS is also the one setting URLs at startup.
We should consider making HttpsPolicy a shared options collection with RedirectToHttpsOptions and HstsOptions. To configure the HttpPolicy, if we require the max-age to be set, users will have to call services.Configure
@javiercn @Tratcher We need to talk about how configuration options will be propagated to the middleware. Aka does this middleware need to do anything different or will configuration call app.UseHsts() or app.HttpsRedirection().
The current Options usage looks fine.
Implementation of #258. Final items:
cc @danroth27 @shirhatti @muratg