diff --git a/MyApp/Program.cs b/MyApp/Program.cs index 0af4088..7b78aa1 100644 --- a/MyApp/Program.cs +++ b/MyApp/Program.cs @@ -26,6 +26,8 @@ .AddSignInManager() .AddDefaultTokenProviders(); +services.ConfigureApplicationCookie(options => options.DisableRedirectsForApis()); + services.AddDataProtection() .PersistKeysToFileSystem(new DirectoryInfo("App_Data"));