mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Fixed: Security Vulnerabilities allowing authentication to be bypass
This commit is contained in:
parent
4525f99370
commit
2ccc5af8d0
6 changed files with 116 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using Nancy;
|
||||
using Nancy.Bootstrapper;
|
||||
using Lidarr.Http.Frontend;
|
||||
|
@ -23,6 +23,8 @@ namespace Lidarr.Http.Extensions.Pipelines
|
|||
|
||||
private void Handle(NancyContext context)
|
||||
{
|
||||
if (context.Request.Method == "OPTIONS") return;
|
||||
|
||||
if (_cacheableSpecification.IsCacheable(context))
|
||||
{
|
||||
context.Response.Headers.EnableCache();
|
||||
|
@ -33,4 +35,4 @@ namespace Lidarr.Http.Extensions.Pipelines
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue