Browse Source

Change options to builder in the Mvc.Server sample

pull/92/merge
Shaun Luttin 11 years ago
committed by Kévin Chalet
parent
commit
e0f62dc3e3
  1. 4
      samples/Mvc.Server/Startup.cs

4
samples/Mvc.Server/Startup.cs

@ -85,10 +85,10 @@ namespace Mvc.Server {
// Note: OpenIddict must be added after // Note: OpenIddict must be added after
// ASP.NET Identity and the external providers. // ASP.NET Identity and the external providers.
app.UseOpenIddict(options => { app.UseOpenIddict(builder => {
// You can customize the default Content Security Policy (CSP) by calling UseNWebsec explicitly. // You can customize the default Content Security Policy (CSP) by calling UseNWebsec explicitly.
// This can be useful to allow your HTML views to reference remote scripts/images/styles. // This can be useful to allow your HTML views to reference remote scripts/images/styles.
options.UseNWebsec(directives => { builder.UseNWebsec(directives => {
directives.DefaultSources(directive => directive.Self()) directives.DefaultSources(directive => directive.Self())
.ImageSources(directive => directive.Self().CustomSources("*")) .ImageSources(directive => directive.Self().CustomSources("*"))
.ScriptSources(directive => directive .ScriptSources(directive => directive

Loading…
Cancel
Save