internal void SetXDownloadOptionsHeader(HttpResponseBase response, NWebsecContext nwebsecContext) { nwebsecContext.XDownloadOptions = WebConfig.SecurityHttpHeaders.XDownloadOptions; var result = _headerGenerator.CreateXDownloadOptionsResult(WebConfig.SecurityHttpHeaders.XDownloadOptions); _headerResultHandler.HandleHeaderResult(response, result); }
internal void SetXDownloadOptionsHeader(IHttpContextWrapper httpContext, NWebsecContext nwebsecContext) { nwebsecContext.XDownloadOptions = WebConfig.SecurityHttpHeaders.XDownloadOptions; var result = _headerGenerator.CreateXDownloadOptionsResult(WebConfig.SecurityHttpHeaders.XDownloadOptions); _headerResultHandler.HandleHeaderResult(httpContext, result); }
public void SetXDownloadOptionsHeader(HttpContext context) { var config = _headerConfigurationOverrideHelper.GetXDownloadOptionsWithOverride(context); if (config == null) { return; } var oldConfig = _contextConfigurationHelper.GetXDownloadOptionsConfiguration(context); var result = _headerGenerator.CreateXDownloadOptionsResult(config, oldConfig); _headerResultHandler.HandleHeaderResult(context.Response, result); }