mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixes #5457; Admin Culture Picker cookie not working on localhost
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Orchard.Localization.Selectors {
|
||||
Expires = _clock.UtcNow.AddYears(DefaultExpireTimeYear),
|
||||
};
|
||||
|
||||
cookie.Domain = httpContext.Request.Url.Host;
|
||||
cookie.Domain = !httpContext.Request.IsLocal ? httpContext.Request.Url.Host : null;
|
||||
|
||||
if (!String.IsNullOrEmpty(_shellSettings.RequestUrlPrefix)) {
|
||||
cookie.Path = GetCookiePath(httpContext);
|
||||
|
||||
Reference in New Issue
Block a user