Fixed: Don't set cookies for static resources

Closes #2059

(cherry picked from commit 6619350f87a8f6ddedfea0cc8ca5b1e9ab006091)
This commit is contained in:
Mark McDowall 2021-03-07 14:51:13 -08:00 committed by Qstick
commit 66c1ac9971
3 changed files with 41 additions and 0 deletions

View file

@ -7,6 +7,7 @@ using Lidarr.Http.Extensions;
using Nancy;
using Nancy.Authentication.Basic;
using Nancy.Authentication.Forms;
using Nancy.Routing.Trie.Nodes;
using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Authentication;
@ -161,6 +162,11 @@ namespace Lidarr.Http.Authentication
return true;
}
if (context.Request.IsBundledJsRequest())
{
return true;
}
if (ValidUser(context))
{
return true;