Skip to content

Commit

Permalink
Cookie name per Application and accross its Instances (#11535)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkech authored Apr 14, 2022
1 parent 9af6018 commit b78fdf7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private static void AddAntiForgery(OrchardCoreBuilder builder)
var settings = serviceProvider.GetRequiredService<ShellSettings>();
var environment = serviceProvider.GetRequiredService<IHostEnvironment>();
var cookieName = "orchantiforgery_" + HttpUtility.UrlEncode(settings.Name + environment.ContentRootPath);
var cookieName = "__orchantiforgery_" + settings.VersionId;
// If uninitialized, we use the host services.
if (settings.State == TenantState.Uninitialized)
Expand Down

0 comments on commit b78fdf7

Please sign in to comment.