public override PolicyDirective ToDirective(string name)
 {
     var directive = new ScriptPolicyDirective
                         {
                             UnsafeAllowEval = UnsafeAllowEval,
                             UnsafeAllowInline = UnsafeAllowInline
                         };
     AddSourcesAndSelf(directive);
     return directive;
 }
Beispiel #2
0
        public override PolicyDirective ToDirective(string name)
        {
            var directive = new ScriptPolicyDirective
            {
                UnsafeAllowEval   = UnsafeAllowEval,
                UnsafeAllowInline = UnsafeAllowInline
            };

            AddSourcesAndSelf(directive);
            return(directive);
        }