Click-Jacking Protection
Learn how to protect your Umbraco site from clickjacking attacks using X-Frame-Options and security headers.
How to fix this health check
Adding Click-Jacking Protection using NWebSec
...
WebApplication app = builder.Build();
app.UseXfo(options => options.SameOrigin());Adding Click-Jacking Protection using manual middleware
app.Use(async (context, next) =>
{
context.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN");
await next();
});Last updated
Was this helpful?