diff --git a/FrontendWebApi/Startup.cs b/FrontendWebApi/Startup.cs index 627983f..79d0ded 100644 --- a/FrontendWebApi/Startup.cs +++ b/FrontendWebApi/Startup.cs @@ -170,7 +170,11 @@ namespace FrontendWebApi app.UseAuthentication(); app.UseAuthorization(); + app.Use(async (context, next) => + { context.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN"); + await next(); + }); //app.UseEndpoints(endpoints => //{ diff --git a/FrontendWebApi/Views/Shared/_Layout.cshtml b/FrontendWebApi/Views/Shared/_Layout.cshtml index ea4b6d5..9765833 100644 --- a/FrontendWebApi/Views/Shared/_Layout.cshtml +++ b/FrontendWebApi/Views/Shared/_Layout.cshtml @@ -843,8 +843,8 @@