diff --git a/TASVideos/Program.cs b/TASVideos/Program.cs
index 763e811a8..58253f5de 100644
--- a/TASVideos/Program.cs
+++ b/TASVideos/Program.cs
@@ -9,6 +9,11 @@
using TASVideos.MovieParsers;
var builder = WebApplication.CreateBuilder(args);
+builder.Host.UseDefaultServiceProvider(config =>
+{
+ config.ValidateOnBuild = true;
+ config.ValidateScopes = true;
+});
// We use false to support GitVersionTask.
// This also suppresses the creation of [assembly: UserSecretsId("...")], so builder.Configuration.AddUserSecrets() will not work.