Skip to content

Commit

Permalink
Disable cookie consent bar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisluque committed Aug 1, 2018
1 parent 564ddeb commit 678e610
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Quickstart/01-Login/SampleMvcApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void ConfigureServices(IServiceCollection services)
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.CheckConsentNeeded = context => false;
options.MinimumSameSitePolicy = SameSiteMode.None;
});

Expand Down
4 changes: 2 additions & 2 deletions Quickstart/02-User-Profile/SampleMvcApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void ConfigureServices(IServiceCollection services)
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.CheckConsentNeeded = context => false;
options.MinimumSameSitePolicy = SameSiteMode.None;
});

Expand Down Expand Up @@ -130,4 +130,4 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
});
}
}
}
}
4 changes: 2 additions & 2 deletions Quickstart/03-Authorization/SampleMvcApp/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void ConfigureServices(IServiceCollection services)
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.CheckConsentNeeded = context => false;
options.MinimumSameSitePolicy = SameSiteMode.None;
});

Expand Down Expand Up @@ -131,4 +131,4 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
});
}
}
}
}

0 comments on commit 678e610

Please sign in to comment.