Second fix ;)
This commit is contained in:
@@ -132,7 +132,7 @@ namespace WebAPI.Controllers
|
|||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public IActionResult AutoImport(string apiKey)
|
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();
|
return Unauthorized();
|
||||||
}
|
}
|
||||||
@@ -180,7 +180,7 @@ namespace WebAPI.Controllers
|
|||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public IActionResult autoImportMorska(string apiKey)
|
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();
|
return Unauthorized();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user