mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 07:37:10 -07:00
Fixed: Don't set cookies for static resources
Closes #2059 (cherry picked from commit 6619350f87a8f6ddedfea0cc8ca5b1e9ab006091)
This commit is contained in:
parent
5cc2db26e7
commit
66c1ac9971
3 changed files with 41 additions and 0 deletions
|
@ -52,6 +52,11 @@ namespace Lidarr.Http.Extensions
|
|||
return defaultValue;
|
||||
}
|
||||
|
||||
public static bool IsBundledJsRequest(this Request request)
|
||||
{
|
||||
return !request.Path.EqualsIgnoreCase("/initialize.js") && request.Path.EndsWith(".js", StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
|
||||
public static bool IsSharedContentRequest(this Request request)
|
||||
{
|
||||
return request.Path.StartsWith("/MediaCover/", StringComparison.InvariantCultureIgnoreCase) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue