Remove host checking in auto import
All checks were successful
Build Docker Images / test (push) Successful in 1m15s
Build Docker Images / build-and-push (push) Successful in 1m36s

This commit is contained in:
2025-11-19 19:03:04 +01:00
parent 2ecfc5bfe5
commit e6b4563712
2 changed files with 2 additions and 2 deletions

View File

@@ -283,7 +283,7 @@ public class LayersController : Controller
[AllowAnonymous]
public IActionResult AutoImport(string apiKey, string nameFilter)
{
if (Request.Host.Value != _configuration["apiLocalUrl"] || apiKey != _configuration["apiKey"])
if (apiKey != _configuration["apiKey"])
{
_logger.LogWarning("AutoImport: Unauthorized request with apiKey {ApiKey}", apiKey);
return Unauthorized();

View File

@@ -2,4 +2,4 @@ GET http://localhost:5400/tests/ping
###
GET https://morska.diunabi.com/api/tests/ping
GET https://morska.diunabi.com/api/layers/autoImport/godojshf8704i357yhgdsahjdfh/K5-