public static OpenIddictBuilder UseNWebsec([NotNull] this OpenIddictBuilder builder) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder.UseNWebsec(options => { options.DefaultSources(directive => directive.Self()) .ImageSources(directive => directive.Self().CustomSources("*")) .ScriptSources(directive => directive.Self().UnsafeInline()) .StyleSources(directive => directive.Self().UnsafeInline()); })); }