diff --git a/src/Backend/DiunaBI.API/Controllers/LayersController.cs b/src/Backend/DiunaBI.API/Controllers/LayersController.cs index 182f3d2..b8b746b 100644 --- a/src/Backend/DiunaBI.API/Controllers/LayersController.cs +++ b/src/Backend/DiunaBI.API/Controllers/LayersController.cs @@ -450,9 +450,9 @@ public class LayersController : Controller [AllowAnonymous] public IActionResult AutoProcess(string apiKey) { - if (Request.Host.Value != _configuration["apiLocalUrl"] || apiKey != _configuration["apiKey"]) + if (apiKey != _configuration["apiKey"]) { - _logger.LogWarning("AutoProcess: Unauthorized request with apiKey {ApiKey}", apiKey); + _logger.LogWarning("AutoImport: Unauthorized request with apiKey {ApiKey}", apiKey); return Unauthorized(); }