예제 #1
0
        public CspOptions()
        {
            Script  = new CspScriptSrcOptions();
            Style   = new CspStyleSrcOptions();
            Default = new CspDefaultSrcOptions();
#pragma warning disable CS0618 // Type or member is obsolete
            Child = new CspChildSrcOptions();
#pragma warning restore CS0618 // Type or member is obsolete
            Connect         = new CspConnectSrcOptions();
            Manifest        = new CspManifestSrcOptions();
            Font            = new CspFontSrcOptions();
            FormAction      = new CspFormActionOptions();
            Img             = new CspImgSrcOptions();
            Media           = new CspMediaSrcOptions();
            Object          = new CspObjectSrcOptions();
            FrameAncestors  = new CspFrameAncestorsOptions();
            PluginTypes     = new CspPluginTypesOptions();
            Sandbox         = new CspSandboxOptions();
            RequireSri      = new CspRequireSriOptions();
            Frame           = new CspFrameSrcOptions();
            Worker          = new CspWorkerSrcOptions();
            Prefetch        = new CspPrefetchSrcOptions();
            BaseUri         = new CspBaseUriOptions();
            OnSendingHeader = context => Task.CompletedTask;
        }
예제 #2
0
 public CspOptions()
 {
     Script         = new CspScriptSrcOptions();
     Style          = new CspStyleSrcOptions();
     Default        = new CspDefaultSrcOptions();
     Child          = new CspChildSrcOptions();
     Connect        = new CspConnectSrcOptions();
     Font           = new CspFontSrcOptions();
     FormAction     = new CspFormActionOptions();
     Img            = new CspImgSrcOptions();
     Media          = new CspMediaSrcOptions();
     Object         = new CspObjectSrcOptions();
     FrameAncestors = new CspFrameAncestorsOptions();
     PluginTypes    = new CspPluginTypesOptions();
     Sandbox        = new CspSandboxOptions();
 }