Skip to content

Commit

Permalink
Middleware will now only include the headers that the user explicitly…
Browse files Browse the repository at this point in the history
… sets in the consuming application's config file
  • Loading branch information
GaProgMan committed Aug 15, 2017
1 parent 139a80a commit 09d4d52
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Models/SecureHeadersMiddlewareConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public class SecureHeadersMiddlewareConfiguration : ISecureHeadersMiddlewareConf

public SecureHeadersMiddlewareConfiguration()
{
UseHsts = true;
UseHpkp = true;
UseXFrameOptions = true;
UseXssProtection = true;
UseXContentTypeOptions = true;
UseContentSecurityPolicy = true;
UsePermittedCrossDomainPolicy = true;
UseReferrerPolicy = true;
UseHsts = false;
UseHpkp = false;
UseXFrameOptions = false;
UseXssProtection = false;
UseXContentTypeOptions = false;
UseContentSecurityPolicy = false;
UsePermittedCrossDomainPolicy = false;
UseReferrerPolicy = false;

HstsConfiguration = new HstsConfiguration();
HpkpConfiguration = new HPKPConfiguration();
Expand Down

0 comments on commit 09d4d52

Please sign in to comment.