Osman Coşkun
03/11/2024, 7:13 AMMike Chambers
03/11/2024, 8:42 AMcsharp
app.Use(async (context, next) =>
{
context.Response.Headers.Append("X-Frame-Options", "SAMEORIGIN");
context.Response.Headers.Append("X-Content-Type-Options", "nosniff");
await next();
});
you might want a few others too..
https://scotthelme.co.uk/hardening-your-http-response-headers/#x-frame-options
and run the site through https://securityheaders.com/Osman Coşkun
03/11/2024, 2:44 PM