mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
21 lines
338 B
C#
21 lines
338 B
C#
using System;
|
|
using System.Web;
|
|
|
|
public class AddXFrameOptions : IHttpHandler
|
|
{
|
|
|
|
public void ProcessRequest(HttpContext ctx)
|
|
{
|
|
// GOOD: X-Frame-Options added
|
|
ctx.Response.AddHeader("X-Frame-Options", "DENY");
|
|
}
|
|
|
|
public bool IsReusable
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|