We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a49de commit 5fba80eCopy full SHA for 5fba80e
MyApp/Program.cs
@@ -27,6 +27,10 @@
27
services.AddScoped<IdentityRedirectManager>();
28
services.AddScoped<AuthenticationStateProvider, PersistingRevalidatingAuthenticationStateProvider>();
29
30
+services.AddAntiforgery(options => {
31
+ options.SuppressXFrameOptionsHeader = true;
32
+});
33
+
34
services.AddAuthentication(options =>
35
{
36
options.DefaultScheme = IdentityConstants.ApplicationScheme;
@@ -92,7 +96,7 @@
92
96
app.UseHttpsRedirection();
93
97
94
98
app.UseStaticFiles();
95
-//app.UseAntiforgery(); remove X-Frame-Options header
99
+app.UseAntiforgery();
100
101
app.MapRazorComponents<App>()
102
.AddInteractiveServerRenderMode()
0 commit comments