From f3ed81ecf73cd9a652375d644733f1c9885440b2 Mon Sep 17 00:00:00 2001 From: dev01 Date: Fri, 8 Sep 2023 21:24:22 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=AD=A6=E6=80=A5=E6=87=89=E8=AE=8A]=20?= =?UTF-8?q?=E8=AD=A6=E6=88=92=E5=80=BC=E8=A8=AD=E5=AE=9A=20Model=20?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E8=AA=BF=E6=95=B4=20|=20X=20Frame=20Option?= =?UTF-8?q?=20=E6=94=B9=20SAMEORGIN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/Startup.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/FrontendWebApi/Startup.cs b/FrontendWebApi/Startup.cs index 1d8079f..627983f 100644 --- a/FrontendWebApi/Startup.cs +++ b/FrontendWebApi/Startup.cs @@ -170,6 +170,7 @@ namespace FrontendWebApi app.UseAuthentication(); app.UseAuthorization(); + context.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN"); //app.UseEndpoints(endpoints => //{