Skip to content

Commit

Permalink
Disable Auth .html redirects for API requests
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 19, 2024
1 parent 3d0c828 commit 01af151
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MyApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
.AddSignInManager()
.AddDefaultTokenProviders();

services.ConfigureApplicationCookie(options => options.DisableRedirectsForApis());

services.AddDataProtection()
.PersistKeysToFileSystem(new DirectoryInfo("App_Data"));

Expand Down

0 comments on commit 01af151

Please sign in to comment.