Remove XFrame on the checkout page

This commit is contained in:
nicolas.dorier 2018-08-29 00:31:23 +09:00
parent 24979a0af2
commit 6eeef8a866

View file

@ -23,7 +23,10 @@ namespace BTCPayServer.Filters
public void OnActionExecuting(ActionExecutingContext context)
{
context.HttpContext.Response.SetHeaderOnStarting("X-Frame-Options", Value);
if (context.IsEffectivePolicy<XFrameOptionsAttribute>(this))
{
context.HttpContext.Response.SetHeaderOnStarting("X-Frame-Options", Value);
}
}
}
}