Skip to content

Instantly share code, notes, and snippets.

@hbulens
Created December 8, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbulens/2de0281edb8c961b0e37ba3c705dcf32 to your computer and use it in GitHub Desktop.
Save hbulens/2de0281edb8c961b0e37ba3c705dcf32 to your computer and use it in GitHub Desktop.
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.MinimumSameSitePolicy = SameSiteMode.None;
});
services.AddLocalization(options => options.ResourcesPath = "Resources");
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment