Example #1
0
        public void SetXFrameoptionsHeader(HttpContext context)
        {
            var config = _headerConfigurationOverrideHelper.GetXFrameoptionsWithOverride(context);

            if (config == null)
            {
                return;
            }

            var oldConfig = _contextConfigurationHelper.GetXFrameOptionsConfiguration(context);

            var result = _headerGenerator.CreateXfoResult(config, oldConfig);

            _headerResultHandler.HandleHeaderResult(context.Response, result);
        }