1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-03-03 10:26:54 +00:00

Don't check for API key on local requests

This commit is contained in:
Mark McDowall 2013-09-23 15:56:01 -07:00
parent 5841140c99
commit df967c1ed1

View file

@ -29,10 +29,10 @@ public Response ValidateApiKey(NancyContext context)
{
Response response = null;
// if (!RuntimeInfo.IsProduction && context.Request.IsLocalRequest())
// {
// return response;
// }
if (!RuntimeInfo.IsProduction && context.Request.IsLocalRequest())
{
return response;
}
var apiKey = context.Request.Headers.Authorization;