Second fix ;)
This commit is contained in:
@@ -132,7 +132,7 @@ namespace WebAPI.Controllers
|
||||
[AllowAnonymous]
|
||||
public IActionResult AutoImport(string apiKey)
|
||||
{
|
||||
if (Request.Host.Value != configuration["api-local-url"] || apiKey != configuration["apiKey"])
|
||||
if (Request.Host.Value != configuration["apiLocalUrl"] || apiKey != configuration["apiKey"])
|
||||
{
|
||||
return Unauthorized();
|
||||
}
|
||||
@@ -180,7 +180,7 @@ namespace WebAPI.Controllers
|
||||
[AllowAnonymous]
|
||||
public IActionResult autoImportMorska(string apiKey)
|
||||
{
|
||||
if (Request.Host.Value != configuration["api-local-url"] || apiKey != configuration["apiKey"])
|
||||
if (Request.Host.Value != configuration["apiLocalUrl"] || apiKey != configuration["apiKey"])
|
||||
{
|
||||
return Unauthorized();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user