I am trying to avoid redirecting.

I added this code to the global.asax

```
protected void Application_EndRequest(Object sender, EventArgs e)
{
    HttpApplication context = (HttpApplication)sender;
    context.Response.SuppressFormsAuthenticationRedirect = true;
}

```

It is not working. When I debug I see that the code is executed, but it keeps redriceting.

For the request of anuj.rohila94, I share the whole global.asax:

```
namespace AngularJSMVC
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
        }

        protected void Application_EndRequest(Object sender, EventArgs e)
        {

            HttpApplication context = (HttpApplication)sender;
            context.Response.SuppressFormsAuthenticationRedirect = true;
        }
    }
}

```