add windows phone exception
This commit is contained in:
parent
b7ed4df4fa
commit
9ba84148dd
|
@ -176,7 +176,7 @@ namespace MediaBrowser.Model.Configuration
|
|||
public PeopleMetadataOptions PeopleMetadataOptions { get; set; }
|
||||
public bool FindInternetTrailers { get; set; }
|
||||
|
||||
public string[] InsecureApps { get; set; }
|
||||
public string[] InsecureApps2 { get; set; }
|
||||
|
||||
public bool SaveMetadataHidden { get; set; }
|
||||
|
||||
|
@ -226,12 +226,13 @@ namespace MediaBrowser.Model.Configuration
|
|||
|
||||
PeopleMetadataOptions = new PeopleMetadataOptions();
|
||||
|
||||
InsecureApps = new[]
|
||||
InsecureApps2 = new[]
|
||||
{
|
||||
"Roku",
|
||||
"Chromecast",
|
||||
"iOS",
|
||||
"Android"
|
||||
"Android",
|
||||
"Windows Phone"
|
||||
};
|
||||
|
||||
MetadataOptions = new[]
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
|||
|
||||
if (!allowLocal || !req.IsLocal)
|
||||
{
|
||||
if (!_config.Configuration.InsecureApps.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))
|
||||
if (!_config.Configuration.InsecureApps2.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
SessionManager.ValidateSecurityToken(auth.Token);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user