Update AbpAspNetCoreMultiTenancyOptions.cs

pull/16140/head
maliming 3 years ago
parent 7ca5d57ddf
commit f5df5811bf
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4

@ -58,7 +58,7 @@ public class AbpAspNetCoreMultiTenancyOptions
}
}
if (isCookieAuthentication)
if (isCookieAuthentication && context.Request.Method.Equals("Get", StringComparison.OrdinalIgnoreCase) && !context.Request.IsAjax())
{
context.Response.Headers.Add("Abp-Tenant-Resolve-Error", exception.Message);
context.Response.Redirect(context.Request.GetEncodedUrl());

Loading…
Cancel
Save