From 1a841795865bf7c24930319b31e09d2cd0de6881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Tue, 25 Nov 2025 14:09:53 +0100 Subject: [PATCH] autoprocess fix --- src/Backend/DiunaBI.API/Controllers/LayersController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }