ddd-refactor #2

Merged
mz merged 46 commits from ddd-refactor into main 2025-11-28 11:14:43 +01:00
Showing only changes of commit 1a84179586 - Show all commits

View File

@@ -450,9 +450,9 @@ public class LayersController : Controller
[AllowAnonymous] [AllowAnonymous]
public IActionResult AutoProcess(string apiKey) 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(); return Unauthorized();
} }