Skip to content

Commit a6a31db

Browse files
Copilotilonatommy
andcommitted
Add UseStatusCodePagesWithReExecute with createScopeForStatusCodePages to Blazor template
Co-authored-by: ilonatommy <[email protected]>
1 parent 2f59f35 commit a6a31db

File tree

1 file changed

+1
-0
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1

1 file changed

+1
-0
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
#endif
9696
{
9797
app.UseExceptionHandler("/Error", createScopeForErrors: true);
98+
app.UseStatusCodePagesWithReExecute("/Error", createScopeForStatusCodePages: true);
9899
#if (HasHttpsProfile)
99100
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
100101
app.UseHsts();

0 commit comments

Comments
 (0)