Securing my ASP.net MVC3 Website aganist “Click jacking”

后端 未结 3 1870
盖世英雄少女心
盖世英雄少女心 2021-01-05 00:35

Recently I was flipping through some security issues faced by websites. Fortunately come across a new term \"Click jacking\"

I understood that this attack happens on

3条回答
  •  感情败类
    2021-01-05 01:01

    In your Global.asax you can add the following

    protected void Application_BeginRequest(object sender, EventArgs e)
    {
        HttpContext.Current.Response.AddHeader("x-frame-options", "SAMEORIGIN");
    }
    

提交回复
热议问题