diff --git a/samples/todoapp-mvc/TodoApp.Service/Controllers/TodoItemsController.cs b/samples/todoapp-mvc/TodoApp.Service/Controllers/TodoItemsController.cs index 2a97aa44..225d6d3c 100644 --- a/samples/todoapp-mvc/TodoApp.Service/Controllers/TodoItemsController.cs +++ b/samples/todoapp-mvc/TodoApp.Service/Controllers/TodoItemsController.cs @@ -11,5 +11,10 @@ public class TodoItemsController : TableController public TodoItemsController(TodoContext context) : base() { Repository = new EntityTableRepository(context); + + // UnsafeEntityLogging is intentionally left at its secure default (false). + // This sample stores user-supplied TodoItem content, so only the entity ID + // is logged; the full serialized entity is never written to the logs. + Options = new TableControllerOptions { UnsafeEntityLogging = false }; } } diff --git a/samples/todoapp-mvc/TodoApp.Service/TodoApp.Service.csproj b/samples/todoapp-mvc/TodoApp.Service/TodoApp.Service.csproj index 16bc2b5d..7a88cdea 100644 --- a/samples/todoapp-mvc/TodoApp.Service/TodoApp.Service.csproj +++ b/samples/todoapp-mvc/TodoApp.Service/TodoApp.Service.csproj @@ -7,8 +7,8 @@ - - + +